Skip to content

Commit

Permalink
Use stripInternal
Browse files Browse the repository at this point in the history
  • Loading branch information
inokawa committed Nov 28, 2023
1 parent 01edeb5 commit 448c4ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* @internal
*/
export const unreachable = (_: never): never => {
throw new Error("unreachable");
};
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"noFallthroughCasesInSwitch": true,
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"exactOptionalPropertyTypes": true
"exactOptionalPropertyTypes": true,
"stripInternal": true
},
"include": ["src"],
"exclude": ["node_modules"]
Expand Down

0 comments on commit 448c4ee

Please sign in to comment.