8000 Q: Better TypeScript support? · google zx · Discussion #399 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Q: Better TypeScript support? #399

Answered by antongolub
jakobjs asked this question in General
Discussion options

You must be logged in to vote

We have expanded the documentation section dedicated to TS configuration: https://google.github.io/zx/typescript
Proven examples can also be found in the project tests.

zx/package.json

Lines 84 to 88 in e1b66cb

"test:smoke:strip-types": "node --experimental-strip-types test/smoke/ts.test.ts",
"test:smoke:tsx": "tsx test/smoke/ts.test.ts",
"test:smoke:tsc": "cd test/smoke && mkdir -p node_modules && ln -s ../../../ ./node_modules/zx; ../../node_modules/typescript/bin/tsc -v && ../../node_modules/typescript/bin/tsc --esModuleInterop --module node16 --rootDir . --outdir ./temp ts.test.ts && node ./temp/ts.test.js",
"test:smoke:ts-node": "cd test/smoke && node --loa…

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@antonmedv
Comment options

Comment options

You must be logged in to vote
1 reply
@antongolub
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by antongolub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
General
Labels
None yet
4 participants
0