Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit ed7470a

Browse files
committed
Update node rules
1 parent 3c4a6a7 commit ed7470a

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/rules/node/file-extension-in-import.d.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,10 @@ import type { RuleConfig } from '../rule-config';
33
/**
44
* Config.
55
*/
6-
export type FileExtensionInImportConfig =
7-
| {
8-
tryExtensions?: string[];
9-
}
10-
| {
11-
[k: string]: 'always' | 'never';
12-
};
6+
export interface FileExtensionInImportConfig {
7+
tryExtensions?: string[];
8+
[ext: `.${string}`]: 'always' | 'never';
9+
}
1310

1411
/**
1512
* Option.

0 commit comments

Comments
 (0)