Skip to content

Commit 1cb4395

Browse files
committed
fix: build warnings
1 parent 0b71332 commit 1cb4395

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/node/src/client.ts.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class Client {
158158
return { uri: url.toString(), options };
159159
}
160160

161-
async chunkedUpload(method: string, url: URL, headers: Headers = {}, originalPayload: Payload = {}, onProgress: (progress: UploadProgress) => {}) {
161+
async chunkedUpload(method: string, url: URL, headers: Headers = {}, originalPayload: Payload = {}, onProgress: (progress: UploadProgress) => void) {
162162
const file = Object.values(originalPayload).find((value) => value instanceof File);
163163

164164
if (file.size <= Client.CHUNK_SIZE) {

templates/node/src/services/template.ts.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { {{ spec.title | caseUcfirst}}Exception, Client, type Payload } from '../client';
1+
import { {{ spec.title | caseUcfirst}}Exception, Client, type Payload, UploadProgress } from '../client';
22
import type { Models } from '../models';
33
{% set added = [] %}
44
{% for method in service.methods %}

0 commit comments

Comments
 (0)