Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added check on SupportsTypeOnlyImports when TypeScript version is >= …
…4.3 and updated File.liquid template for TypeScript (#4005) * - The TypeScript compiler type checking produces an error for the import of the axios types - Not possible to change the preserveValueImports or isolatedModules compiler options because they are needed by vite-vue - also see Issue 3964 - type-only imports for axios (#3964) - Changed axios imports to support import type when typescript version >= 4.3 by adding SupportsTypeOnlyImports in TypeScriptFileTemplateModel.cs - It is supported as from TypeScript version 3.8 but only versions 2.7, 4.3, so picked 4.3 (https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-8.html) * changed to TypeScript 3.8 as its supported from this version (https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-8.html) You can't set it in the UI but user can define free value in JSON configuration. Co-authored-by: Tom van de Kerkhof <tom.vandekerkhof2@kbc.be>
- Loading branch information