@@ -151,7 +151,7 @@ Comments for propWithFunction
151
151
152
152
### propWithProps
153
153
154
- > **propWithProps**: \\ { \` callbacks\` : \` Partial\`\\ <[\` CallbacksOptions\` ](../classes/CallbacksOptions.md)\\ <[\` DisposableClass\` ](../classes/DisposableClass.md), [\` ClassWithModifiers\` ](../classes/ClassWithModifiers.md)\\ >\\ >; \` nestedPropA\` : \` string\` ; \` nestedPropB\` : \` boolean\` ; \` nestedPropC\` : \\ { \` nestedPropCA\` : \` string\` ; \\ }; \` nestedPropD\` : () => \` boolean\` ; \\ }
154
+ > **propWithProps**: \\ { \` callbacks? \` : \` Partial\`\\ <[\` CallbacksOptions\` ](../classes/CallbacksOptions.md)\\ <[\` DisposableClass\` ](../classes/DisposableClass.md), [\` ClassWithModifiers\` ](../classes/ClassWithModifiers.md)\\ >\\ >; \` nestedPropA\` : \` string\` ; \` nestedPropB\` : \` boolean\` ; \` nestedPropC\` : \\ { \` nestedPropCA\` : \` string\` ; \\ }; \` nestedPropD\` : () => \` boolean\` ; \\ }
155
155
156
156
Comments for propWithProps
157
157
@@ -221,7 +221,7 @@ Comments for BasicInterface
221
221
| <a id = " propreturningsignaturedeclaration" ></a > \` propReturningSignatureDeclaration?\` | () => \` string\` \\ | \` number\` \\ | \` boolean\` | Comments for propReturningSignatureDeclaration |
222
222
| <a id = " propreturningsignaturedeclarations" ></a > \` propReturningSignatureDeclarations\` | () => \` any\` & (\` paramsA\` : \` true\` \\ | \` any\` [], \` paramsB?\` : \` any\` ) => \` any\` & (\` paramsC\` : \` any\` ) => \` any\` | Comments for propReturningSignatureDeclarations |
223
223
| <a id = " propwithfunction" ></a > \` propWithFunction\` | (\` options\` : \\ { \` a\` : \` boolean\` ; \` b\` : \` string\` ; \\ }) => \` boolean\` | Comments for propWithFunction |
224
- | <a id = " propwithprops" ></a > \` propWithProps\` | \\ { \` callbacks\` : \` Partial\`\\ <[\` CallbacksOptions\` ](../classes/CallbacksOptions.md)\\ <[\` DisposableClass\` ](../classes/DisposableClass.md), [\` ClassWithModifiers\` ](../classes/ClassWithModifiers.md)\\ >\\ >; \` nestedPropA\` : \` string\` ; \` nestedPropB\` : \` boolean\` ; \` nestedPropC\` : \\ { \` nestedPropCA\` : \` string\` ; \\ }; \` nestedPropD\` : () => \` boolean\` ; \\ } | Comments for propWithProps |
224
+ | <a id = " propwithprops" ></a > \` propWithProps\` | \\ { \` callbacks? \` : \` Partial\`\\ <[\` CallbacksOptions\` ](../classes/CallbacksOptions.md)\\ <[\` DisposableClass\` ](../classes/DisposableClass.md), [\` ClassWithModifiers\` ](../classes/ClassWithModifiers.md)\\ >\\ >; \` nestedPropA\` : \` string\` ; \` nestedPropB\` : \` boolean\` ; \` nestedPropC\` : \\ { \` nestedPropCA\` : \` string\` ; \\ }; \` nestedPropD\` : () => \` boolean\` ; \\ } | Comments for propWithProps |
225
225
| \` propWithProps.callbacks?\` | \` Partial\`\\ <[\` CallbacksOptions\` ](../classes/CallbacksOptions.md)\\ <[\` DisposableClass\` ](../classes/DisposableClass.md), [\` ClassWithModifiers\` ](../classes/ClassWithModifiers.md)\\ >\\ > | Comments for callbacks |
226
226
| \` propWithProps.nestedPropA\` | \` string\` | Comments for nestedPropA |
227
227
| \` propWithProps.nestedPropB\` | \` boolean\` | Comments for nestedPropB |
@@ -362,7 +362,7 @@ y: number = 2;
362
362
exports [` Objects And Params should compile function with nested parameters: (Output File Strategy "members") (Option Group "1") 1` ] = `
363
363
"# Function: functionWithNestedParameters()
364
364
365
- > **functionWithNestedParameters**(\` params\` : \\ { \` name\` : \` string\` ; \` nestedObj\` : \\ { \` name\` : \` string\` ; \` obj\` : \\ { \` name\` : () => \` void\` ; \\ }; \` value\` : \` number\` ; \\ }; \` parent\` : \` number\` ; \\ }, \` context\` : \` any\` , \` somethingElse?\` : \` string\` ): \` boolean\`
365
+ > **functionWithNestedParameters**(\` params\` : \\ { \` name\` : \` string\` ; \` nestedObj\` : \\ { \` name\` : \` string\` ; \` obj\` : \\ { \` name\` : () => \` void\` ; \\ }; \` value\` : \` number\` ; \\ }; \` parent? \` : \` number\` ; \\ }, \` context\` : \` any\` , \` somethingElse?\` : \` string\` ): \` boolean\`
366
366
367
367
Some nested params.
368
368
@@ -434,7 +434,7 @@ function functionWithNestedParameters(
434
434
};
435
435
value : number ;
436
436
};
437
- parent : number ;
437
+ parent ? : number ;
438
438
} ,
439
439
context: any,
440
440
somethingElse?: string): boolean;
@@ -446,7 +446,7 @@ Some nested params.
446
446
447
447
| Parameter | Type | Description |
448
448
| :------ | :------ | :------ |
449
- | \` params\` | \\ { \` name\` : \` string\` ; \` nestedObj\` : \\ { \` name\` : \` string\` ; \` obj\` : \\ { \` name\` : () => \` void\` ; \\ }; \` value\` : \` number\` ; \\ }; \` parent\` : \` number\` ; \\ } | The parameters passed to the method. |
449
+ | \` params\` | \\ { \` name\` : \` string\` ; \` nestedObj\` : \\ { \` name\` : \` string\` ; \` obj\` : \\ { \` name\` : () => \` void\` ; \\ }; \` value\` : \` number\` ; \\ }; \` parent? \` : \` number\` ; \\ } | The parameters passed to the method. |
450
450
| \` params.name\` | \` string\` | The name of the new group. |
451
451
| \` params.nestedObj\` | \\ { \` name\` : \` string\` ; \` obj\` : \\ { \` name\` : () => \` void\` ; \\ }; \` value\` : \` number\` ; \\ } | A nested object. |
452
452
| \` params.nestedObj.name?\` | \` string\` | - |
@@ -502,9 +502,7 @@ bar: number;
502
502
exports [` Objects And Params should compile literal type: (Output File Strategy "members") (Option Group "1") 1` ] = `
503
503
"# Type Alias: LiteralType
504
504
505
- > **LiteralType** = \\ { \` someFunctionWithArrow\` : () => \` string\` ; \` x\` : \` string\` ; \` y\` : \\ { \` x\` : \` string\` ; \` y\` : \` boolean\` \\ | \` string\` ; \` z\` : (\` x\` : \` string\` ) => \` string\` ; \\ }; \` z\` : (\` x\` : \` string\` ) => \` string\` ; get \` accessorA\`
506
- set \` accessorA\` \` accessorA\` : [\` Promise\` ](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)\\ <\` string\`\\ >; get \` accessorB\`
507
- set \` accessorB\` \` accessorB\` : \` string\` ; \` someFunction\` : [\` Promise\` ](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)\\ <\` any\`\\ >; \\ }
505
+ > **LiteralType** = \\ { \` someFunctionWithArrow\` : () => \` string\` ; \` x?\` : \` string\` ; \` y\` : \\ { \` x\` : \` string\` ; \` y?\` : \` boolean\` \\ | \` string\` ; \` z\` : (\` x\` : \` string\` ) => \` string\` ; \\ }; \` z\` : (\` x\` : \` string\` ) => \` string\` ; get \` accessorA()\` : [\` Promise\` ](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)\\ <\` string\`\\ >; get \` accessorB()\` : \` string\` ; \` someFunction\` : [\` Promise\` ](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)\\ <\` any\`\\ >; \\ }
508
506
509
507
Comments for LiteralType
510
508
@@ -532,7 +530,7 @@ comment for x
532
530
533
531
### y
534
532
535
- > **y**: \\ { \` x\` : \` string\` ; \` y\` : \` boolean\` \\ | \` string\` ; \` z\` : (\` x\` : \` string\` ) => \` string\` ; \\ }
533
+ > **y**: \\ { \` x\` : \` string\` ; \` y? \` : \` boolean\` \\ | \` string\` ; \` z\` : (\` x\` : \` string\` ) => \` string\` ; \\ }
536
534
537
535
comment for y
538
536
@@ -662,17 +660,15 @@ exports[`Objects And Params should compile literal type: (Output File Strategy "
662
660
\`\`\` ts
663
661
type LiteralType = {
664
662
someFunctionWithArrow : () => string ;
665
- x : string ;
663
+ x ? : string ;
666
664
y : {
667
665
x: string ;
668
- y : boolean | string ;
666
+ y ? : boolean | string ;
669
667
z : (x : string ) => string ;
670
668
};
671
669
z : (x : string ) => string ;
672
- get accessorA
673
- set accessorA accessorA : Promise <string >;
674
- get accessorB
675
- set accessorB accessorB: string;
670
+ get accessorA (): Promise <string >;
671
+ get accessorB(): string;
676
672
someFunction: Promise<any >;
677
673
};
678
674
\`\`\`
@@ -710,7 +706,7 @@ comment for x
710
706
\`\`\`ts
711
707
y: {
712
708
x : string ;
713
- y : boolean | string ;
709
+ y ? : boolean | string ;
714
710
z : (x : string ) => string ;
715
711
} ;
716
712
\`\`\`
0 commit comments