File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 10
10
11
11
- Fast .d.ts generation _ (via isolatedDeclaration)_
12
12
- Highly configurable
13
+ - Lightweight library
13
14
- Cross-platform binary
14
- - Lightweight & dependency-free library
15
15
16
16
## Install
17
17
@@ -39,19 +39,19 @@ Given the npm package is installed, you can use the `generate` function to gener
39
39
### Usage
40
40
41
41
``` ts
42
+ import type { DtsGenerationOptions } from ' @stacksjs/dtsx'
42
43
import { generate } from ' @stacksjs/dtsx'
43
44
44
- interface Options {
45
- cwd? : string // default: process.cwd()
46
- root? : string // default: './src'
47
- entrypoints? : string [] // default: ['**/*.ts']
48
- outdir? : string // default: './dist'
49
- keepComments? : boolean // default: true
50
- clean? : boolean // default: false
51
- tsconfigPath? : string // default: './tsconfig.json'
45
+ const options: DtsGenerationOptions = {
46
+ cwd: ' ./' , // default: process.cwd()
47
+ root: ' ./src' , // default: './src'
48
+ entrypoints: [' **/*.ts' ], // default: ['**/*.ts']
49
+ outdir: ' ./dist' , // default: './dist'
50
+ keepComments: true , // default: true
51
+ clean: true , // default: false
52
52
}
53
53
54
- await generate (options ?: Options )
54
+ await generate (options )
55
55
```
56
56
57
57
_ Available options:_
You can’t perform that action at this time.
0 commit comments