File tree Expand file tree Collapse file tree 3 files changed +15
-9
lines changed Expand file tree Collapse file tree 3 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 1+ packages /language /src /generated /**
2+ ** /schema.ts
Original file line number Diff line number Diff line change @@ -4,15 +4,19 @@ const DEFAULT_STRIP_REGEXP = /[^A-Z0-9]+/gi;
44
55export function paramCase ( input : string ) {
66 const result = input
7- . replace ( DEFAULT_SPLIT_REGEXP_1 , " $1\0$2" )
8- . replace ( DEFAULT_SPLIT_REGEXP_2 , " $1\0$2" )
9- . replace ( DEFAULT_STRIP_REGEXP , "\0" ) ;
7+ . replace ( DEFAULT_SPLIT_REGEXP_1 , ' $1\0$2' )
8+ . replace ( DEFAULT_SPLIT_REGEXP_2 , ' $1\0$2' )
9+ . replace ( DEFAULT_STRIP_REGEXP , '\0' ) ;
1010
1111 let start = 0 ;
1212 let end = result . length ;
1313
14- while ( result . charAt ( start ) === "\0" ) start ++ ;
15- while ( result . charAt ( end - 1 ) === "\0" ) end -- ;
14+ while ( result . charAt ( start ) === '\0' ) start ++ ;
15+ while ( result . charAt ( end - 1 ) === '\0' ) end -- ;
1616
17- return result . slice ( start , end ) . split ( "\0" ) . map ( ( str ) => str . toLowerCase ( ) ) . join ( "-" ) ;
17+ return result
18+ . slice ( start , end )
19+ . split ( '\0' )
20+ . map ( ( str ) => str . toLowerCase ( ) )
21+ . join ( '-' ) ;
1822}
Original file line number Diff line number Diff line change @@ -331,9 +331,9 @@ export function getObjectLiteral<T>(expr: Expression | ConfigExpr | undefined):
331331 return result as T ;
332332}
333333
334- export function getLiteralArray <
335- T extends string | number | boolean | any = any ,
336- > ( expr : Expression | ConfigExpr | undefined ) : T [ ] | undefined {
334+ export function getLiteralArray < T extends string | number | boolean | any = any > (
335+ expr : Expression | ConfigExpr | undefined ,
336+ ) : T [ ] | undefined {
337337 const arr = getArray ( expr ) ;
338338 if ( ! arr ) {
339339 return undefined ;
You can’t perform that action at this time.
0 commit comments