-
-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeScript type error cannot assign unknown
to string...
#1422
Comments
@zewa666 can you help with this error since it is code you've put in couple years ago 😉 I don't know how to cast within a EDIT if I replace type Join<T extends any[], D extends string> =
T extends [] ? never :
T extends [infer F] ? F :
T extends [infer F, ...infer R] ?
- F extends string ? string extends F ? string : `${F}${D}${Join<R, D>}` : never : string;
+ F extends string ? string extends F ? string : `${F}${D}${Join<R, D>}` : any : string; I think I'll go with that since the first |
unknown
to string...
hmm I'm not next to a Computer to be able to try it out but I'd assume that with the new TS version there is better recusrive inference, hence the issue could be the T of type any[]. perhaps if we replace I can check that one out tomorrow EDIT:
|
alright, I'll let you propose a fix then if you don't mind. Thanks 😉 ohh and BTW, I added Stackblitz on the main readme of the project, so you don't even need to clone the project anymore, you can use Stackblitz and use VSCode within Stackblitz, it's kinda cool since the project is all running within that container. It's also adding itself in every PR, so you could use the Stackblitz from last PR #1423 which is where I've added |
that sounds really cool. So its a way to quickly review an incoming PR? very cool, i like. btw I think I got the PR ready. Please try this one out locally though, since I can't reproduce the IDE error and I'm not sure Stackblitz would either. |
@zewa666 BTW, have you had a chance to try the Dark Mode yet? 😉 |
no, sadly I'm burried in work with AI stuff currently. But finally begin of April my larger grid project is about to begin so I'm looking forward getting up to speed with all the new features. |
Describe the bug
I think the upgrade to the new TypeScript version created this new issue but only after I deleted the pnpm lock file and reinstalled everything
slickgrid-universal/packages/common/src/interfaces/column.interface.ts
Lines 24 to 28 in 5fab179
Reproduction
pnpm install and then run a TypeScript build
Which Framework are you using?
Vanilla / Plain JS
Environment Info
Validations
The text was updated successfully, but these errors were encountered: