Skip to content

Commit

Permalink
feat: make stripInternal configurable and default to false (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret authored Feb 9, 2024
1 parent 41ebaa7 commit 2a14478
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ export interface BuildOptions {
* @default false
*/
importHelpers?: boolean;
stripInternal?: boolean;
strictBindCallApply?: boolean;
strictFunctionTypes?: boolean;
strictNullChecks?: boolean;
Expand Down Expand Up @@ -252,7 +253,7 @@ export async function build(options: BuildOptions): Promise<void> {
outDir: typesOutDir,
allowJs: true,
alwaysStrict: true,
stripInternal: true,
stripInternal: options.compilerOptions?.stripInternal,
strictBindCallApply: options.compilerOptions?.strictBindCallApply ?? true,
strictFunctionTypes: options.compilerOptions?.strictFunctionTypes ?? true,
strictNullChecks: options.compilerOptions?.strictNullChecks ?? true,
Expand Down

0 comments on commit 2a14478

Please sign in to comment.