Skip to content

Commit b71f03e

Browse files
committed
update TS samples
1 parent a89ffe5 commit b71f03e

22 files changed

Lines changed: 22 additions & 22 deletions

File tree

samples/client/others/typescript-fetch/additional-properties-in-multipart-issue/runtime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ export function serializeDate(value: Date): string {
381381
}
382382

383383

384-
export function parseDate(value: any): Date {
384+
export function parseDate(value: Date | string): Date {
385385
if (value instanceof Date) {
386386
return value;
387387
}

samples/client/others/typescript-fetch/infinite-recursion-issue/runtime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ export function serializeDate(value: Date): string {
381381
}
382382

383383

384-
export function parseDate(value: any): Date {
384+
export function parseDate(value: Date | string): Date {
385385
if (value instanceof Date) {
386386
return value;
387387
}

samples/client/others/typescript-fetch/multipart-file-array/runtime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ export function serializeDate(value: Date): string {
381381
}
382382

383383

384-
export function parseDate(value: any): Date {
384+
export function parseDate(value: Date | string): Date {
385385
if (value instanceof Date) {
386386
return value;
387387
}

samples/client/others/typescript-fetch/self-import-issue/runtime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ export function serializeDate(value: Date): string {
381381
}
382382

383383

384-
export function parseDate(value: any): Date {
384+
export function parseDate(value: Date | string): Date {
385385
if (value instanceof Date) {
386386
return value;
387387
}

samples/client/petstore/typescript-fetch/builds/allOf-nullable/runtime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ export function serializeDate(value: Date): string {
381381
}
382382

383383

384-
export function parseDate(value: any): Date {
384+
export function parseDate(value: Date | string): Date {
385385
if (value instanceof Date) {
386386
return value;
387387
}

samples/client/petstore/typescript-fetch/builds/allOf-readonly/runtime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ export function serializeDate(value: Date): string {
381381
}
382382

383383

384-
export function parseDate(value: any): Date {
384+
export function parseDate(value: Date | string): Date {
385385
if (value instanceof Date) {
386386
return value;
387387
}

samples/client/petstore/typescript-fetch/builds/date-library-date/runtime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ export function serializeDate(value: Date): string {
381381
}
382382

383383

384-
export function parseDate(value: any): Date {
384+
export function parseDate(value: Date | string): Date {
385385
if (value instanceof Date) {
386386
return value;
387387
}

samples/client/petstore/typescript-fetch/builds/default-v3.0/runtime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ export function serializeDate(value: Date): string {
381381
}
382382

383383

384-
export function parseDate(value: any): Date {
384+
export function parseDate(value: Date | string): Date {
385385
if (value instanceof Date) {
386386
return value;
387387
}

samples/client/petstore/typescript-fetch/builds/default/runtime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ export function serializeDate(value: Date): string {
381381
}
382382

383383

384-
export function parseDate(value: any): Date {
384+
export function parseDate(value: Date | string): Date {
385385
if (value instanceof Date) {
386386
return value;
387387
}

samples/client/petstore/typescript-fetch/builds/enum/runtime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ export function serializeDate(value: Date): string {
381381
}
382382

383383

384-
export function parseDate(value: any): Date {
384+
export function parseDate(value: Date | string): Date {
385385
if (value instanceof Date) {
386386
return value;
387387
}

0 commit comments

Comments
 (0)