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 1010
1111- Fast .d.ts generation _ (via isolatedDeclaration)_
1212- Highly configurable
13+ - Lightweight library
1314- Cross-platform binary
14- - Lightweight & dependency-free library
1515
1616## Install
1717
@@ -39,19 +39,19 @@ Given the npm package is installed, you can use the `generate` function to gener
3939### Usage
4040
4141``` ts
42+ import type { DtsGenerationOptions } from ' @stacksjs/dtsx'
4243import { generate } from ' @stacksjs/dtsx'
4344
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
5252}
5353
54- await generate (options ?: Options )
54+ await generate (options )
5555```
5656
5757_ Available options:_
You can’t perform that action at this time.
0 commit comments