diff --git a/src/utils.ts b/src/utils.ts index 4df62bc6..ecb497a7 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,3 +1,6 @@ +/** + * @internal + */ export const unreachable = (_: never): never => { throw new Error("unreachable"); }; diff --git a/tsconfig.json b/tsconfig.json index 124bf5c8..a50008a7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -21,7 +21,8 @@ "noFallthroughCasesInSwitch": true, "allowUnreachableCode": false, "allowUnusedLabels": false, - "exactOptionalPropertyTypes": true + "exactOptionalPropertyTypes": true, + "stripInternal": true }, "include": ["src"], "exclude": ["node_modules"]