Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions @ember/library-tsconfig/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,22 @@
// to enforce using `import type` instead of `import` for Types.
"verbatimModuleSyntax": true,

// Require sufficient annotation on exports so other tools can trivially generate declaration files.
// (also boosts type-checking performance)
"isolatedDeclarations": true,

// only TypeScript-specific syntax that does not have runtime semantics are supported under this mode.
// In other words, it must be possible to easily erase any TypeScript-specific syntax from a file,
// leaving behind a valid JavaScript file.
//
// That means the following constructs are not supported:
// - enum declarations
// - namespaces and modules with runtime code
// - parameter properties in classes
// - Non-ECMAScript import = and export = assignments
// - <prefix>-style type assertions
"erasableSyntaxOnly": true,

// v2 addons build using `rollup` and `@babel/plugin-transform-typescript`,
// which requires file extensions on relative path imports, so we need to
// support importing `.ts` files.
Expand Down
Loading