You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#8817 partially broke create & merge functions in Active Record setups by.
Expected Behavior
I'd expect a Active Record entities create & merge functions to be able to take a valid limited input as a parameter.
Actual Behavior
fails to compile because of
No overload matches this call.
Overload 1 of 3, '(this: (new () => Item) & typeof BaseEntity, entityLikeArray: DeepPartial<Item>[]): Item[]', gave the following error.
Argument of type 'Pick<Item, "value">' is not assignable to parameter of type 'DeepPartial<Item>[]'.
Type 'Pick<Item, "value">' is missing the following properties from type 'DeepPartial<Item>[]': length, pop, push, concat, and 26 more.
Overload 2 of 3, '(this: (new () => BaseEntity) & typeof BaseEntity, entityLike: DeepPartial<BaseEntity>): BaseEntity', gave the following error.
Argument of type 'Pick<Item, "value">' is not assignable to parameter of type 'DeepPartial<BaseEntity>'.ts(2769)
BaseEntity.ts(185, 12): The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible.
Issue Description
#8817 partially broke create & merge functions in Active Record setups by.
Expected Behavior
I'd expect a Active Record entities create & merge functions to be able to take a valid limited input as a parameter.
Actual Behavior
fails to compile because of
Steps to Reproduce
My Environment
Additional Context
Relevant Database Driver(s)
aurora-mysql
aurora-postgres
better-sqlite3
cockroachdb
cordova
expo
mongodb
mysql
nativescript
oracle
postgres
react-native
sap
spanner
sqlite
sqlite-abstract
sqljs
sqlserver
Are you willing to resolve this issue by submitting a Pull Request?
The text was updated successfully, but these errors were encountered: