Skip to content

Commit

Permalink
update the sample
Browse files Browse the repository at this point in the history
  • Loading branch information
kota65535 committed Mar 10, 2024
1 parent af1d2d7 commit f184081
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function ClubFromJSONTyped(json: any, ignoreDiscriminator: boolean): Club
};
}

export function ClubToJSON(value?: Club | null): any {
export function ClubToJSON(value?: Omit<Club, 'owner'> | null): any {
if (value == null) {
return value;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function HasOnlyReadOnlyFromJSONTyped(json: any, ignoreDiscriminator: boo
};
}

export function HasOnlyReadOnlyToJSON(value?: HasOnlyReadOnly | null): any {
export function HasOnlyReadOnlyToJSON(value?: Omit<HasOnlyReadOnly, 'bar'|'foo'> | null): any {
if (value == null) {
return value;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export function NameFromJSONTyped(json: any, ignoreDiscriminator: boolean): Name
};
}

export function NameToJSON(value?: Name | null): any {
export function NameToJSON(value?: Omit<Name, 'snake_case'|'123Number'> | null): any {
if (value == null) {
return value;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function ReadOnlyFirstFromJSONTyped(json: any, ignoreDiscriminator: boole
};
}

export function ReadOnlyFirstToJSON(value?: ReadOnlyFirst | null): any {
export function ReadOnlyFirstToJSON(value?: Omit<ReadOnlyFirst, 'bar'> | null): any {
if (value == null) {
return value;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function HasOnlyReadOnlyFromJSONTyped(json: any, ignoreDiscriminator: boo
};
}

export function HasOnlyReadOnlyToJSON(value?: HasOnlyReadOnly | null): any {
export function HasOnlyReadOnlyToJSON(value?: Omit<HasOnlyReadOnly, 'bar'|'foo'> | null): any {
if (value == null) {
return value;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export function NameFromJSONTyped(json: any, ignoreDiscriminator: boolean): Name
};
}

export function NameToJSON(value?: Name | null): any {
export function NameToJSON(value?: Omit<Name, 'snake_case'|'123Number'> | null): any {
if (value == null) {
return value;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function ReadOnlyFirstFromJSONTyped(json: any, ignoreDiscriminator: boole
};
}

export function ReadOnlyFirstToJSON(value?: ReadOnlyFirst | null): any {
export function ReadOnlyFirstToJSON(value?: Omit<ReadOnlyFirst, 'bar'> | null): any {
if (value == null) {
return value;
}
Expand Down

0 comments on commit f184081

Please sign in to comment.