diff --git a/dts.snapshot.json b/dts.snapshot.json index 3b9b395c0..1de74acbd 100644 --- a/dts.snapshot.json +++ b/dts.snapshot.json @@ -114,7 +114,7 @@ "#exports": [] }, "types-!~{00b}~.d.mts": { - "AttwOptions": "interface AttwOptions extends CheckPackageOptions {\n module?: typeof _$_arethetypeswrong_core0\n profile?: 'strict' | 'node16' | 'esm-only'\n level?: 'error' | 'warn'\n ignoreRules?: string[]\n}", + "AttwOptions": "interface AttwOptions extends CheckPackageOptions {\n module?: typeof _$_arethetypeswrong_core0\n profile?: 'strict' | 'node16' | 'esm-only'\n level?: 'error' | 'warn'\n ignoreRules?: ('no-resolution' | 'untyped-resolution' | 'false-cjs' | 'false-esm' | 'cjs-resolves-to-esm' | 'fallback-condition' | 'cjs-only-exports-default' | 'named-exports' | 'false-export-default' | 'missing-export-equals' | 'unexpected-module-syntax' | 'internal-resolution-error' | (string & {}))[]\n}", "BuildContext": "interface BuildContext {\n options: ResolvedConfig\n hooks: Hookable\n}", "ChunkAddon": "type ChunkAddon = ChunkAddonObject | ChunkAddonFunction | string", "ChunkAddonFunction": "type ChunkAddonFunction = (_: { format: Format; fileName: string }) => ChunkAddonObject | string | undefined", diff --git a/src/features/pkg/attw.ts b/src/features/pkg/attw.ts index a74bc6d0a..0f5d930f8 100644 --- a/src/features/pkg/attw.ts +++ b/src/features/pkg/attw.ts @@ -76,7 +76,21 @@ export interface AttwOptions extends CheckPackageOptions { * ignoreRules: ['no-resolution', 'false-cjs'] * ``` */ - ignoreRules?: string[] + ignoreRules?: ( + | 'no-resolution' + | 'untyped-resolution' + | 'false-cjs' + | 'false-esm' + | 'cjs-resolves-to-esm' + | 'fallback-condition' + | 'cjs-only-exports-default' + | 'named-exports' + | 'false-export-default' + | 'missing-export-equals' + | 'unexpected-module-syntax' + | 'internal-resolution-error' + | (string & {}) + )[] } /**