feat: Remove prepended ampersand and pipe

This commit is contained in:
Christian Budde Christensen 2020-11-18 23:24:39 +01:00
parent f6e425b421
commit 0284451d7a
No known key found for this signature in database
GPG Key ID: 475D82D19F0E4FDB
3 changed files with 10 additions and 10 deletions

View File

@ -1 +1 @@
({{#each properties}} & {{>type}}{{/each}}){{>isNullable}}
({{#each properties}}{{#unless @first}} & {{/unless}}{{>type}}{{/each}}){{>isNullable}}

View File

@ -1 +1 @@
({{#each properties}} | {{>type}}{{/each}}){{>isNullable}}
({{#each properties}}{{#unless @first}} | {{/unless}}{{>type}}{{/each}}){{>isNullable}}

View File

@ -2905,7 +2905,7 @@ import type { ModelWithString } from './ModelWithString';
/**
* This is a model that extends another model
*/
export type ModelThatExtends = ( & ModelWithString & {
export type ModelThatExtends = (ModelWithString & {
propExtendsA?: string,
propExtendsB?: ModelWithString,
});"
@ -2922,7 +2922,7 @@ import type { ModelWithString } from './ModelWithString';
/**
* This is a model that extends another model
*/
export type ModelThatExtendsExtends = ( & ModelWithString & ModelThatExtends & {
export type ModelThatExtendsExtends = (ModelWithString & ModelThatExtends & {
propExtendsC?: string,
propExtendsD?: ModelWithString,
});"
@ -2941,7 +2941,7 @@ import type { ModelWithEnum } from './ModelWithEnum';
* This is a model with one property with a 'all of' relationship
*/
export interface ModelWithAllOfAndNullable {
propA?: ( & {
propA?: ({
boolean?: boolean,
} & ModelWithEnum & ModelWithArray & ModelWithDictionary) | null;
}
@ -2962,7 +2962,7 @@ import type { ModelWithString } from './ModelWithString';
* This is a model with one property with a 'any of' relationship
*/
export interface ModelWithAnyOf {
propA?: ( | ModelWithString | ModelWithEnum | ModelWithArray | ModelWithDictionary);
propA?: (ModelWithString | ModelWithEnum | ModelWithArray | ModelWithDictionary);
}
"
`;
@ -2980,7 +2980,7 @@ import type { ModelWithEnum } from './ModelWithEnum';
* This is a model with one property with a 'any of' relationship
*/
export interface ModelWithAnyOfAndNullable {
propA?: ( | {
propA?: ({
boolean?: boolean,
} | ModelWithEnum | ModelWithArray | ModelWithDictionary) | null;
}
@ -3245,7 +3245,7 @@ import type { ModelWithString } from './ModelWithString';
* This is a model with one property with a 'one of' relationship
*/
export interface ModelWithOneOf {
propA?: ( | ModelWithString | ModelWithEnum | ModelWithArray | ModelWithDictionary);
propA?: (ModelWithString | ModelWithEnum | ModelWithArray | ModelWithDictionary);
}
"
`;
@ -3263,7 +3263,7 @@ import type { ModelWithEnum } from './ModelWithEnum';
* This is a model with one property with a 'one of' relationship
*/
export interface ModelWithOneOfAndNullable {
propA?: ( | {
propA?: ({
boolean?: boolean,
} | ModelWithEnum | ModelWithArray | ModelWithDictionary) | null;
}
@ -4344,7 +4344,7 @@ export class ComplexService {
readonly type: 'Monkey' | 'Horse' | 'Bird',
listOfModels?: Array<ModelWithString> | null,
listOfStrings?: Array<string> | null,
parameters: ( | ModelWithString | ModelWithEnum | ModelWithArray | ModelWithDictionary),
parameters: (ModelWithString | ModelWithEnum | ModelWithArray | ModelWithDictionary),
readonly user?: {
readonly id?: number,
readonly name?: string | null,