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
We can't use version 4.1.0 because it includes invalid TypeScript definitions:
Error: node_modules/min-dash/dist/object.d.ts:72:77 - error TS2344: Type 'V' does not satisfy the constraint 'keyof T'.
Type 'any[]' is not assignable to type 'keyof T'.
72 export function pick<T, V extends any[]>(target: T, properties: V): Pick<T, V>;
~
Error: node_modules/min-dash/dist/object.d.ts:82:77 - error TS2344: Type 'V' does not satisfy the constraint 'string | number | symbol'.
Type 'any[]' is not assignable to type 'string | number | symbol'.
82 export function omit<T, V extends any[]>(target: T, properties: V): Omit<T, V>;
~
Describe the Bug
We can't use version 4.1.0 because it includes invalid TypeScript definitions:
This is introduced in #25.
Steps to Reproduce
Can also be reproduced in the TypeScript Playground: https://www.typescriptlang.org/play?ts=5.0.4#code/PQKhCgAIUhhB7ADgT0gFwBYFNIDcCGANgK5YDOk8AZpEYZTZjlgHbEC2WATvgEaE54AdxaREXJNzQBLcpCoT2lFoK6R28LjjLxiXAMaDeAKyz60FNPFpQYafFwDmWNJRNm0AOkgAlF3pZLbHQHZ1d4d3NPW1tIAAFEB3wleycXSAAVYNSwt1NzdGt9JFQraOh4xJ4lHT1DTODagyN81wV4JSEMaX0MQshilDEJRClZMnKQYHAsAA9ETTbiFnNpeFF8MjJpRxYAHgyAGkgAVQA+AAoclwAuTOOmwzuTgEo7jMgAMlOAbnBwUAQCoIIZMPBEUgUai0Qj0aFg1gcbh8ASUETDSRcGRydpKdaqdSabS6Zp5DyWaz4WLXcKRLy+fxcQLobKhdIRVqTWIJJIpNmuLI4GlkgpWAYlQqTSq8yCPLAARgaOCo0i4ZFccpFbUUkC6PT6YsGqHEmOxE25VWSspJhgATErZWZ1gATa11FoeeQ6vW9fpGjGjLHjSbTOYLLHyZarda0LY7fZHU7HABqlxp7weNoVz0z7ttd2Tb0yX1OJeTfwBYFiINKwQIJDk0LoDBZzDYnB4-EE6JNgbNXo6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OiqaN+UwEp-2RgAjszgMbZX6pAXKnh8pF3KqzYqPwgA
(copy&pasta of https://github.com/bpmn-io/min-dash/blob/master/lib/object.d.ts)
Expected Behavior
This library should provide valid TypeScript declarations.
Environment
The text was updated successfully, but these errors were encountered: