Skip to content

Commit

Permalink
fix options
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariano Goldman committed Jun 14, 2024
1 parent 5f7f34b commit 482738f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/client/ContentClient.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { hashV0, hashV1 } from '@dcl/hashing'
import { Entity } from '@dcl/schemas'
import { IFetchComponent, RequestOptions as OriginalRequestOptions } from '@well-known-components/interfaces'
import { IFetchComponent, RequestOptions } from '@well-known-components/interfaces'
import FormData from 'form-data'
import { ClientOptions, DeploymentData } from './types'
import { addModelToFormData, isNode, mergeRequestOptions, sanitizeUrl, splitAndFetch } from './utils/Helper'
import { retry } from './utils/retry'
import { Response } from '@well-known-components/interfaces/dist/components/fetcher'

export type RequestOptions = OriginalRequestOptions & {
export type DeploymentRequestOptions = RequestOptions & {
deploymentProtocolVersion?: 'v1' | 'v2'
}

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

export async function downloadContent(
Expand Down Expand Up @@ -142,7 +142,7 @@ export function createContentClient(options: ClientOptions): ContentClient {
return requests
}

async function deploy(deployData: DeploymentData, options?: RequestOptions): Promise<unknown> {
async function deploy(deployData: DeploymentData, options?: DeploymentRequestOptions): Promise<unknown> {
if (options?.deploymentProtocolVersion === 'v2') {
const supportsV2 = await supportsDeploymentsV2(contentUrl)
if (supportsV2) {
Expand Down

0 comments on commit 482738f

Please sign in to comment.