File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
output/themes/default/partials Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export function memberSignatureBody(
25
25
< li >
26
26
< span >
27
27
{ context . reflectionFlags ( item ) }
28
- { ! ! item . flags . isRest && < span class = "tsd-signature-symbol" > ...</ span > }
28
+ { item . flags . isRest && < span class = "tsd-signature-symbol" > ...</ span > }
29
29
< span class = "tsd-kind-parameter" > { item . name } </ span >
30
30
{ ": " }
31
31
{ context . type ( item . type ) }
Original file line number Diff line number Diff line change @@ -295,9 +295,9 @@ function renderChild(
295
295
return (
296
296
< li class = "tsd-parameter" >
297
297
< h5 id = { anchorTargetIfPresent ( context , child ) } >
298
- { ! ! child . flags . isRest && < span class = "tsd-signature-symbol" > ...</ span > }
298
+ { child . flags . isRest && < span class = "tsd-signature-symbol" > ...</ span > }
299
299
< span class = { getKindClass ( child ) } > { child . name } </ span >
300
- < span class = "tsd-signature-symbol" > { ! ! child . flags . isOptional && "?" } :</ span > function
300
+ < span class = "tsd-signature-symbol" > { child . flags . isOptional && "?" } :</ span > function
301
301
</ h5 >
302
302
303
303
{ context . memberSignatures ( child ) }
@@ -325,10 +325,10 @@ function renderChild(
325
325
< li class = "tsd-parameter" >
326
326
< h5 id = { anchorTargetIfPresent ( context , child ) } >
327
327
{ context . reflectionFlags ( child ) }
328
- { ! ! child . flags . isRest && < span class = "tsd-signature-symbol" > ...</ span > }
328
+ { child . flags . isRest && < span class = "tsd-signature-symbol" > ...</ span > }
329
329
< span class = { getKindClass ( child ) } > { child . name } </ span >
330
330
< span class = "tsd-signature-symbol" >
331
- { ! ! child . flags . isOptional && "?" }
331
+ { child . flags . isOptional && "?" }
332
332
{ ": " }
333
333
</ span >
334
334
{ context . type ( child . type ) }
Original file line number Diff line number Diff line change 1
1
// Type only import to non-bundled file
2
2
// eslint-disable-next-line no-restricted-imports
3
- import type { TagString } from "#utils" ;
4
3
import type { TranslationProxy } from "../internationalization/internationalization.js" ;
4
+ import type { TagString } from "./validation.js" ;
5
5
6
6
let translations : Record < PropertyKey , string > = { } ;
7
7
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ export class ArgumentsReader implements OptionsReader {
81
81
decl . type === ParameterType . Boolean ||
82
82
decl . type === ParameterType . Flags
83
83
) {
84
- const value = String ( this . args [ index ] ) . toLowerCase ( ) ;
84
+ const value = String ( this . args . at ( index ) ) . toLowerCase ( ) ;
85
85
86
86
if ( value === "true" || value === "false" ) {
87
87
trySet ( decl . name , value === "true" ) ;
@@ -114,7 +114,7 @@ export class ArgumentsReader implements OptionsReader {
114
114
115
115
if ( decl && decl . type === ParameterType . Flags ) {
116
116
const flagName = name . split ( "." , 2 ) [ 1 ] ;
117
- const value = String ( this . args [ index ] ) . toLowerCase ( ) ;
117
+ const value = String ( this . args . at ( index ) ) . toLowerCase ( ) ;
118
118
119
119
if ( value === "true" || value === "false" ) {
120
120
trySet ( decl . name , { [ flagName ] : value === "true" } ) ;
You can’t perform that action at this time.
0 commit comments