Skip to content

Commit

Permalink
Add exactOptionalPropertyTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
wycats committed May 4, 2023
1 parent a81c716 commit dd43f67
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions build/broccoli/write-smoke-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ class TypesSmokeTestWriter extends Plugin {
noUnusedLocals: true,
noUnusedParameters: true,
noImplicitReturns: true,
useDefineForClassFields: true,
exactOptionalPropertyTypes: true,

newLine: 'LF',
noEmit: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/@glimmer/syntax/lib/traversal/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export interface TraversalError extends Error {
key: string;
node: ASTv1.Node;
parent: Option<ASTv1.Node>;
stack: string | undefined;
stack?: string | undefined;
}

export interface TraversalErrorConstructor {
Expand Down
2 changes: 2 additions & 0 deletions packages/@glimmer/vm/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"useDefineForClassFields": true,
"exactOptionalPropertyTypes": true,

"newLine": "LF",
"noEmit": true,
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"noUnusedParameters": true,
"noImplicitReturns": true,
"useDefineForClassFields": true,
// "exactOptionalPropertyTypes": true,
"exactOptionalPropertyTypes": true,
// "noImplicitOverride": true,
// "noPropertyAccessFromIndexSignature": true,
// "noUncheckedIndexedAccess": true,
Expand Down

0 comments on commit dd43f67

Please sign in to comment.