@@ -109,22 +109,22 @@ describe('Javascript visitor', () => {
109
109
110
110
export declare class SimpleNonModelType {
111
111
readonly id: string;
112
- readonly names?: (string | null)[];
112
+ readonly names?: (string | null)[] | null ;
113
113
constructor(init: ModelInit<SimpleNonModelType>);
114
114
}
115
115
116
116
export declare class SimpleModel {
117
117
readonly id: string;
118
- readonly name?: string;
119
- readonly bar?: string;
120
- readonly foo?: Bar[];
118
+ readonly name?: string | null ;
119
+ readonly bar?: string | null ;
120
+ readonly foo?: Bar[] | null ;
121
121
constructor(init: ModelInit<SimpleModel>);
122
122
static copyOf(source: SimpleModel, mutator: (draft: MutableModel<SimpleModel>) => MutableModel<SimpleModel> | void): SimpleModel;
123
123
}
124
124
125
125
export declare class Bar {
126
126
readonly id: string;
127
- readonly simpleModelFooId?: string;
127
+ readonly simpleModelFooId?: string | null ;
128
128
constructor(init: ModelInit<Bar>);
129
129
static copyOf(source: Bar, mutator: (draft: MutableModel<Bar>) => MutableModel<Bar> | void): Bar;
130
130
}"
@@ -158,7 +158,7 @@ describe('Javascript visitor', () => {
158
158
159
159
export declare class SimpleNonModelType {
160
160
readonly id: string;
161
- readonly names?: (string | null)[];
161
+ readonly names?: (string | null)[] | null ;
162
162
constructor(init: ModelInit<SimpleNonModelType>);
163
163
}
164
164
@@ -172,20 +172,20 @@ describe('Javascript visitor', () => {
172
172
173
173
export declare class SimpleModel {
174
174
readonly id: string;
175
- readonly name?: string;
176
- readonly bar?: string;
177
- readonly foo?: Bar[];
178
- readonly createdAt?: string;
179
- readonly updatedAt?: string;
175
+ readonly name?: string | null ;
176
+ readonly bar?: string | null ;
177
+ readonly foo?: Bar[] | null ;
178
+ readonly createdAt?: string | null ;
179
+ readonly updatedAt?: string | null ;
180
180
constructor(init: ModelInit<SimpleModel, SimpleModelMetaData>);
181
181
static copyOf(source: SimpleModel, mutator: (draft: MutableModel<SimpleModel, SimpleModelMetaData>) => MutableModel<SimpleModel, SimpleModelMetaData> | void): SimpleModel;
182
182
}
183
183
184
184
export declare class Bar {
185
185
readonly id: string;
186
- readonly createdAt?: string;
187
- readonly updatedAt?: string;
188
- readonly simpleModelFooId?: string;
186
+ readonly createdAt?: string | null ;
187
+ readonly updatedAt?: string | null ;
188
+ readonly simpleModelFooId?: string | null ;
189
189
constructor(init: ModelInit<Bar, BarMetaData>);
190
190
static copyOf(source: Bar, mutator: (draft: MutableModel<Bar, BarMetaData>) => MutableModel<Bar, BarMetaData> | void): Bar;
191
191
}"
@@ -290,14 +290,14 @@ describe('Javascript visitor with default owner auth', () => {
290
290
291
291
export declare class SimpleNonModelType {
292
292
readonly id: string;
293
- readonly names?: (string | null)[];
293
+ readonly names?: (string | null)[] | null ;
294
294
constructor(init: ModelInit<SimpleNonModelType>);
295
295
}
296
296
297
297
export declare class SimpleModel {
298
298
readonly id: string;
299
- readonly name?: string;
300
- readonly bar?: string;
299
+ readonly name?: string | null ;
300
+ readonly bar?: string | null ;
301
301
constructor(init: ModelInit<SimpleModel>);
302
302
static copyOf(source: SimpleModel, mutator: (draft: MutableModel<SimpleModel>) => MutableModel<SimpleModel> | void): SimpleModel;
303
303
}"
@@ -359,14 +359,14 @@ describe('Javascript visitor with custom owner field auth', () => {
359
359
360
360
export declare class SimpleNonModelType {
361
361
readonly id: string;
362
- readonly names?: (string | null)[];
362
+ readonly names?: (string | null)[] | null ;
363
363
constructor(init: ModelInit<SimpleNonModelType>);
364
364
}
365
365
366
366
export declare class SimpleModel {
367
367
readonly id: string;
368
- readonly name?: string;
369
- readonly bar?: string;
368
+ readonly name?: string | null ;
369
+ readonly bar?: string | null ;
370
370
constructor(init: ModelInit<SimpleModel>);
371
371
static copyOf(source: SimpleModel, mutator: (draft: MutableModel<SimpleModel>) => MutableModel<SimpleModel> | void): SimpleModel;
372
372
}"
@@ -430,14 +430,14 @@ describe('Javascript visitor with multiple owner field auth', () => {
430
430
431
431
export declare class SimpleNonModelType {
432
432
readonly id: string;
433
- readonly names?: (string | null)[];
433
+ readonly names?: (string | null)[] | null ;
434
434
constructor(init: ModelInit<SimpleNonModelType>);
435
435
}
436
436
437
437
export declare class SimpleModel {
438
438
readonly id: string;
439
- readonly name?: string;
440
- readonly bar?: string;
439
+ readonly name?: string | null ;
440
+ readonly bar?: string | null ;
441
441
constructor(init: ModelInit<SimpleModel>);
442
442
static copyOf(source: SimpleModel, mutator: (draft: MutableModel<SimpleModel>) => MutableModel<SimpleModel> | void): SimpleModel;
443
443
}"
@@ -492,7 +492,7 @@ describe('Javascript visitor with auth directives in field level', () => {
492
492
readonly id: string;
493
493
readonly name: string;
494
494
readonly address: string;
495
- readonly ssn?: string;
495
+ readonly ssn?: string | null ;
496
496
constructor(init: ModelInit<Employee>);
497
497
static copyOf(source: Employee, mutator: (draft: MutableModel<Employee>) => MutableModel<Employee> | void): Employee;
498
498
}"
0 commit comments