What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-12 11:27:07
read json file in typescript
// data.json: { "greeting" : "xin chao Vietnam" } // component: import * as data from 'data.json'; let greeting = data.greeting; //registering jsonModule in tsconfig.json "compilerOptions": { .... "resolveJsonMod... Add solution -
Javascript 2021-10-01 13:29:03
disable strict mode angular
//Following Angular doc, the strict mode can be //disabled turning off these flags on tsconfig.json file: "forceConsistentCasingInFileNames": false, "strict": false, "noImplicitReturns": false, "noFallthrou... Add solution -
TypeScript 2021-09-28 08:55:02
Cannot find module .svg' or its corresponding type declarations.
// Create a file named custom.d.ts with the following content: declare module "*.svg" { const content: any; export default content; } // Add the custom.d.ts to tsconfig.json as below "include": ["src/components", "sr... Add solution -
TypeScript 2021-09-20 22:27:02
nuxt typescript $axios types
Add the types to your "types" array in tsconfig.json after the @nuxt/types (Nuxt 2.9.0+) or @nuxt/vue-app entry -------------------------------------------------------- tsconfig.json { "compilerOptions": { "types": [ ... Add solution