Skip to content

Commit b8a0ac4

Browse files
committed
type: update index.d.ts
1 parent 34b831a commit b8a0ac4

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

index.d.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
interface Options {
2+
/**
3+
* @default js
4+
* @description Appends the specified `.js` extension to `import` and `export` declarations.
5+
*/
26
extension?: string;
7+
/**
8+
* @default false
9+
* @description By default, if a declaration file already has an extension, it is preserved. Extensions are added to declaration files that do not have one.
10+
*/
311
replace?: boolean;
12+
/**
13+
* @default false
14+
* @description If set to `true` and a declaration file has an extension that is *not* included in the `observedScriptExtensions` list, the file will be skipped.
15+
*/
16+
skipUnlistedExtensions?: boolean;
17+
/**
18+
* @default ['js', 'ts', 'jsx', 'tsx', 'mjs', 'cjs']
19+
* @description Declaration files with extensions present in this list are considered for extension replacement (based on the `replace` option). Files with extensions *not* in this list will have the `extension` option's value appended to them.
20+
*/
421
observedScriptExtensions?: [string];
522
}
623

0 commit comments

Comments
 (0)