@@ -1305,6 +1305,7 @@ export interface GeneratorMockOutput {
13051305 type : OutputMockType ;
13061306 implementation : string ;
13071307 imports : GeneratorImport [ ] ;
1308+ strictMockSchemaTypeNames ?: string [ ] ;
13081309}
13091310
13101311export interface GeneratorMockOutputFull {
@@ -1315,6 +1316,7 @@ export interface GeneratorMockOutputFull {
13151316 handlerName : string ;
13161317 } ;
13171318 imports : GeneratorImport [ ] ;
1319+ strictMockSchemaTypeNames ?: string [ ] ;
13181320}
13191321
13201322export interface GeneratorTarget {
@@ -1482,6 +1484,7 @@ export interface ClientMockGeneratorImplementation {
14821484export interface ClientMockGeneratorBuilder {
14831485 imports : GeneratorImport [ ] ;
14841486 implementation : ClientMockGeneratorImplementation ;
1487+ strictMockSchemaTypeNames ?: string [ ] ;
14851488}
14861489
14871490export type ClientMockBuilder = (
@@ -1644,6 +1647,11 @@ export type ResReqTypesValue = ScalarValue & {
16441647 originalSchema ?: OpenApiSchemaObject ;
16451648} ;
16461649
1650+ export interface FinalizeMockImplementationOptions {
1651+ mockOptions ?: Pick < MockOptions , 'required' | 'nonNullable' > ;
1652+ strictSchemaTypeNames ?: readonly string [ ] ;
1653+ }
1654+
16471655export interface WriteSpecBuilder {
16481656 operations : GeneratorOperations ;
16491657 verbOptions : Record < string , GeneratorVerbOptions > ;
@@ -1653,6 +1661,11 @@ export interface WriteSpecBuilder {
16531661 footer : GeneratorClientFooter ;
16541662 imports : GeneratorClientImports ;
16551663 importsMock : GenerateMockImports ;
1664+ /** Hoists shared strict-mock type aliases once per aggregated mock file. */
1665+ finalizeMockImplementation ?: (
1666+ implementation : string ,
1667+ options : FinalizeMockImplementationOptions ,
1668+ ) => string ;
16561669 extraFiles : ClientFileBuilder [ ] ;
16571670 info : OpenApiInfoObject ;
16581671 target : string ;
@@ -1740,6 +1753,11 @@ export type GeneratorApiBuilder = GeneratorApiOperations & {
17401753 footer : GeneratorClientFooter ;
17411754 imports : GeneratorClientImports ;
17421755 importsMock : GenerateMockImports ;
1756+ /** Hoists shared strict-mock type aliases once per aggregated mock file. */
1757+ finalizeMockImplementation ?: (
1758+ implementation : string ,
1759+ options : FinalizeMockImplementationOptions ,
1760+ ) => string ;
17431761 extraFiles : ClientFileBuilder [ ] ;
17441762} ;
17451763
0 commit comments