Dska
Dska
KKysely
Created by Dska on 11/22/2023 in #help
Typing issue when working with onConflict
@koskimas thank you, do you manually override generated types or kysely codegen provides an interface to configure some basic types ?
9 replies
KKysely
Created by Dska on 11/22/2023 in #help
Typing issue when working with onConflict
Playground Link @Igal thanks for response
9 replies
KKysely
Created by Dska on 11/22/2023 in #help
Typing issue when working with onConflict
My Kysely version is 0.26.3 I see that working with json ref is now supported https://github.com/kysely-org/kysely/pull/440
9 replies
KKysely
Created by Dska on 11/22/2023 in #help
Typing issue when working with onConflict
Also if i ignore first error here is next
      The types of 'dayLimit' are incompatible between these types.         Type 'ExpressionWrapper<OnConflictDatabase<DB, "clinicEventSetting">, OnConflictTables<"clinicEventSetting">, JsonValue>' is not assignable to type 'ValueExpression<OnConflictDatabase<DB, "clinicEventSetting">, OnConflictTables<"clinicEventSetting">, string | null> | undefined'.           Type 'ExpressionWrapper<OnConflictDatabase<DB, "clinicEventSetting">, OnConflictTables<"clinicEventSetting">, JsonValue>' is not assignable to type 'SelectQueryBuilderExpression<Record<string, string | null>>'.             The types of 'toOperationNode().kind' are incompatible between these types.               Type 'OperationNodeKind' is not assignable to type '"SelectQueryNode"'.                 Type '"IdentifierNode"' is not assignable to type '"SelectQueryNode"'.
      The types of 'dayLimit' are incompatible between these types.         Type 'ExpressionWrapper<OnConflictDatabase<DB, "clinicEventSetting">, OnConflictTables<"clinicEventSetting">, JsonValue>' is not assignable to type 'ValueExpression<OnConflictDatabase<DB, "clinicEventSetting">, OnConflictTables<"clinicEventSetting">, string | null> | undefined'.           Type 'ExpressionWrapper<OnConflictDatabase<DB, "clinicEventSetting">, OnConflictTables<"clinicEventSetting">, JsonValue>' is not assignable to type 'SelectQueryBuilderExpression<Record<string, string | null>>'.             The types of 'toOperationNode().kind' are incompatible between these types.               Type 'OperationNodeKind' is not assignable to type '"SelectQueryNode"'.                 Type '"IdentifierNode"' is not assignable to type '"SelectQueryNode"'.
9 replies