File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export interface Handlers {
37
37
output : Output ;
38
38
}
39
39
40
- export type SfcOptions = CommandsOption & Handlers ;
40
+ export type SfcOptions = Pick < CommandsOption , "propsNotOnlyTs" > & Handlers ;
41
41
42
42
export type ScriptOptions = {
43
43
fileType : FileType ;
Original file line number Diff line number Diff line change @@ -13,10 +13,7 @@ async function setup() {
13
13
const start = Date . now ( ) ;
14
14
const argv = process . argv . slice ( 2 ) . filter ( Boolean ) ;
15
15
16
- let { pathNames, commands } = argv . reduce < {
17
- pathNames : string [ ] ;
18
- commands : CommandsOption ;
19
- } > (
16
+ let { pathNames, commands } = argv . reduce (
20
17
( p , c ) => {
21
18
if ( c . startsWith ( "--" ) ) {
22
19
switch ( c . split ( "--" ) [ 1 ] as keyof typeof p . commands ) {
@@ -40,7 +37,7 @@ async function setup() {
40
37
41
38
return p ;
42
39
} ,
43
- { pathNames : [ ] , commands : { } } ,
40
+ { pathNames : [ ] as string [ ] , commands : { } as CommandsOption } ,
44
41
) ;
45
42
46
43
if ( ! pathNames . length ) {
You can’t perform that action at this time.
0 commit comments