File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ type DeepPartial<T> = T extends object
1919 : T ;
2020
2121interface Method extends Omit < originalMethod , "signature" > {
22- signature : Signature [ ] | Record < string , Signature > ;
22+ signature : DeepPartial < Signature > [ ] | Record < string , DeepPartial < Signature > > ;
2323}
2424
2525function optionalMember < const T > ( prop : string , type : T , value ?: Value ) {
@@ -288,9 +288,7 @@ function handleMethod(child: Node): DeepPartial<Method> {
288288 } ) ,
289289 } ;
290290
291- let signature :
292- | Record < string , DeepPartial < Signature > >
293- | DeepPartial < Signature > [ ] ;
291+ let signature : Method [ 'signature' ] ;
294292 const signatureIndex = child . properties ?. signatureIndex ;
295293 if ( typeof signatureIndex == "number" ) {
296294 signature = { [ signatureIndex ] : signatureObj } ;
You can’t perform that action at this time.
0 commit comments