Skip to content

Commit 482738f

Browse files
author
Mariano Goldman
committed
fix options
1 parent 5f7f34b commit 482738f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/client/ContentClient.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { hashV0, hashV1 } from '@dcl/hashing'
22
import { Entity } from '@dcl/schemas'
3-
import { IFetchComponent, RequestOptions as OriginalRequestOptions } from '@well-known-components/interfaces'
3+
import { IFetchComponent, RequestOptions } from '@well-known-components/interfaces'
44
import FormData from 'form-data'
55
import { ClientOptions, DeploymentData } from './types'
66
import { addModelToFormData, isNode, mergeRequestOptions, sanitizeUrl, splitAndFetch } from './utils/Helper'
77
import { retry } from './utils/retry'
88
import { Response } from '@well-known-components/interfaces/dist/components/fetcher'
99

10-
export type RequestOptions = OriginalRequestOptions & {
10+
export type DeploymentRequestOptions = RequestOptions & {
1111
deploymentProtocolVersion?: 'v1' | 'v2'
1212
}
1313

@@ -37,7 +37,7 @@ export type ContentClient = {
3737
/**
3838
* Deploys an entity to the content server.
3939
*/
40-
deploy(deployData: DeploymentData, options?: RequestOptions): Promise<unknown>
40+
deploy(deployData: DeploymentData, options?: DeploymentRequestOptions): Promise<unknown>
4141
}
4242

4343
export async function downloadContent(
@@ -142,7 +142,7 @@ export function createContentClient(options: ClientOptions): ContentClient {
142142
return requests
143143
}
144144

145-
async function deploy(deployData: DeploymentData, options?: RequestOptions): Promise<unknown> {
145+
async function deploy(deployData: DeploymentData, options?: DeploymentRequestOptions): Promise<unknown> {
146146
if (options?.deploymentProtocolVersion === 'v2') {
147147
const supportsV2 = await supportsDeploymentsV2(contentUrl)
148148
if (supportsV2) {

0 commit comments

Comments
 (0)