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
Type 'string[]' is not assignable to type 'Target | Target[] | undefined'.
Type 'string[]' is not assignable to type 'Target[]'.
Type 'string' is not assignable to type 'Target'.(2322)
Defining the following
tsup.config.ts
will result in a type error.error:
ref: https://www.typescriptlang.org/play/?ssl=2&ssc=1&pln=3&pc=1#code/JYWwDg9gTgLgBAbzgEwKYDNgDtUGEJaYDmcAvnOlBCHAEQwDOArmLQNwBQokscARlQDuDVFAYAbYAxgAVCAFEGfJsHHIKVGrQERhoiVJgBaGBCOolKtew4c0mHPkLAiACgQc4XuDACGUIlQYAC5+IRExSWk5RWVVZFcASgAaDlJEjiA
This is due to tsup's use of the literal type Union.
tsup/src/options.ts
Line 88 in 00188a0
Could adding
(string & {})
to the type solve this problem?microsoft/TypeScript#29729 (comment)
Upvote & Fund
The text was updated successfully, but these errors were encountered: