-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Description
I have an interface with properties of arrays of various types. Eg:
export interface IObject {
ids: number[];
types: string[];
If I use merge partially like this:
export const makeFakeObj = (override?: NestedPartial<MyObj>): MyObj => {
return mergePartially.deep(
{
ids: [],
types: ["test"],
},
override
);
};
I'm seeing errors referencing the array props:
Types of property 'types' are incompatible.
Type '_DeepPartialArray<string> | undefined' is not assignable to type '_DeepPartialArray<never> | undefined'.
Type '_DeepPartialArray<string>' is not assignable to type '_DeepPartialArray<never>'.
Type 'string' is not assignable to type 'never'.ts(2345)
Metadata
Metadata
Assignees
Labels
No labels