From 8def2f8dc0c3ff0c3cf8cf3d9d84e5a4a3660b4a Mon Sep 17 00:00:00 2001 From: ymekuria Date: Wed, 12 Jul 2023 23:23:51 -0700 Subject: [PATCH] chore: update tutorial 4 ui tsconfig --- .../04-zkapp-browser-ui/ui/tsconfig.json | 54 ++++++++++--------- 1 file changed, 29 insertions(+), 25 deletions(-) diff --git a/examples/zkapps/04-zkapp-browser-ui/ui/tsconfig.json b/examples/zkapps/04-zkapp-browser-ui/ui/tsconfig.json index 3a716a3ce..e55728e28 100644 --- a/examples/zkapps/04-zkapp-browser-ui/ui/tsconfig.json +++ b/examples/zkapps/04-zkapp-browser-ui/ui/tsconfig.json @@ -1,26 +1,30 @@ - - { - "compilerOptions": { - "target": "ES2019", - "module": "es2022", - "lib": ["dom", "dom.iterable", "esnext"], - "allowJs": true, - "skipLibCheck": true, - "strict": true, - "strictPropertyInitialization": false, - "forceConsistentCasingInFileNames": true, - "noEmit": true, - "esModuleInterop": true, - "module": "esnext", - "moduleResolution": "node", - "experimentalDecorators": true, - "emitDecoratorMetadata": true, - "resolveJsonModule": true, - "isolatedModules": true, - "jsx": "preserve", - "incremental": true - }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], - "exclude": ["node_modules"] +{ + "compilerOptions": { + "target": "es2020", + "module": "esnext", + "lib": ["dom", "dom.iterable", "esnext"], + "strict": true, + "strictPropertyInitialization": false, // to enable generic constructors, e.g. on CircuitValue + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true, + "moduleResolution": "node", + "experimentalDecorators": true, + "emitDecoratorMetadata": true, + "allowJs": true, + "declaration": true, + "sourceMap": true, + "noFallthroughCasesInSwitch": true, + "allowSyntheticDefaultImports": true, + "isolatedModules": true, + "noEmit": true, + "incremental": true, + "resolveJsonModule": true, + "jsx": "preserve", + "paths": { + "@/*": ["./src/*"] } - \ No newline at end of file + }, + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], + "exclude": ["node_modules"] +}