We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
satisfies
Hi @lukeed 👋 Hope you are well.
It would be great to be able to use the TypeScript 4.9 satisfies operator!
However, currently, tsm throws an error when using satisfies:
tsm
import {AType} from '../a'; const a = 'abc' satisfies AType; // 💥 Expected ";" but found "satisfies"
Full error:
Error: R] Expected ";" but found "satisfies" /home/runner/work/courses/courses/packages/database/scripts/databaseFixtures/courseModules.ts:879:11: 879 │ ] as const satisfies readonly CourseModule[]; │ ~~~~~~~~~ ╵ ; /home/runner/work/courses/courses/node_modules/tsm/node_modules/esbuild/lib/main.js:1605 let error = new Error(`${text}${summary}`); ^
This is supported in esbuild@^0.15.13
esbuild@^0.15.13
Use Yarn/pnpm Resolutions (or npm Overrides) to force the version in package.json:
package.json
{ "resolutions": { "**/tsm/esbuild": "0.15.14" } }
The text was updated successfully, but these errors were encountered:
Upgrading to a new esbuild version may also resolve #31
esbuild
Sorry, something went wrong.
2d406ef
Thanks for 2d406ef @lukeed ! Will this be released in tsm@2.2.3?
tsm@2.2.3
2.3.0 by eod
Nice, tsm@2.3.0 is working, thanks! 🙌
tsm@2.3.0
No branches or pull requests
Hi @lukeed 👋 Hope you are well.
It would be great to be able to use the TypeScript 4.9
satisfies
operator!However, currently,
tsm
throws an error when usingsatisfies
:Full error:
This is supported in
esbuild@^0.15.13
Workaround
Use Yarn/pnpm Resolutions (or npm Overrides) to force the version in
package.json
:The text was updated successfully, but these errors were encountered: