onnxruntime/js/web/script
Yulong Wang 6b0c97b43f
[js/web] fix typescript type check (#18343)
### Description

This PR fixes the TypeScript type check.

Previously, when I use esbuild to replace webpack (#17745), typescript
typecheck was disabled. This causes a few TypeScript type error checked
in into the code base. This PR fixes the followings:

- Use "Node16" as default "module" value in tsconfig.json, because in
TypeScript v5, `(module == "ES2015" && moduleResolution == "Node16")` is
an invalid combination.
- Set `noUnusedParameters` to true as default. in web override it to
false because multiple code need to be updated ( a following-up PR will
do this )
- set correct project file for 'web/lib/**/*.ts' for ESLint (otherwise
WebGPU types are not populated correctly)
- fix type error in file js/web/lib/wasm/jsep/webgpu/program-manager.ts
- upgrade "@webgpu/types" to latest to fix type error in file
js/web/lib/wasm/jsep/backend-webgpu.ts
- add package script "prebuild" for web to run tsc type check
- add type check in CI yml file
2023-11-10 16:03:38 -08:00
..
build.ts Add "glue" between training WASM artifacts and training web (#17474) 2023-10-12 11:16:56 -07:00
generate-webgl-operator-md.ts [js/webgpu] generate operator table for webgpu (#15954) 2023-05-20 12:20:41 -07:00
generate-webgpu-operator-md.ts [JS/WebGPU] Add Resize operator (#16680) 2023-07-31 09:35:06 -07:00
parse-profiler.ts
prepack.ts [js] update prepack script to use exact version (#17484) 2023-09-13 00:07:16 -07:00
pull-prebuilt-wasm-artifacts.ts Add training WASM generation to Web CI pipeline (#17319) 2023-09-08 15:49:47 -07:00
test-runner-cli-args.ts [js/web] use esbuild to accelerate bundle build (#17745) 2023-10-06 13:37:37 -07:00
test-runner-cli.ts [js/web] use esbuild to accelerate bundle build (#17745) 2023-10-06 13:37:37 -07:00
tsconfig.json [js/web] fix typescript type check (#18343) 2023-11-10 16:03:38 -08:00