Skip to content

Commit

Permalink
Fix d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
LZQCN committed Dec 24, 2023
1 parent f2f27d3 commit ee7b3ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export namespace workshop {
}
export function createItem(appId?: number | undefined | null): Promise<UgcResult>
export function updateItem(itemId: bigint, updateDetails: UgcUpdate, appId?: number | undefined | null): Promise<UgcResult>
export function updateItemWithCallback(itemId: bigint, updateDetails: UgcUpdate, appId: number | undefined | null, successCallback: (data: { itemId: bigint; needsToAcceptAgreement: boolean }) => void, errorCallback: (err: any) => void, progressCallback?: (data: { status: number; progress: bigint; total: bigint }) => void, progressCallbackIntervalMs?: number | undefined | null): void
export function updateItemWithCallback(itemId: bigint, updateDetails: UgcUpdate, appId: number | undefined | null, successCallback: (data: { itemId: bigint; needsToAcceptAgreement: boolean }) => void, errorCallback: (err: any) => void, progressCallback?: (data: { status: UpdateStatus; progress: bigint; total: bigint }) => void, progressCallbackIntervalMs?: number | undefined | null): void
/**
* Subscribe to a workshop item. It will be downloaded and installed as soon as possible.
*
Expand Down
2 changes: 1 addition & 1 deletion src/api/workshop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ pub mod workshop {
#[napi(ts_arg_type = "(err: any) => void")] error_callback: napi::JsFunction,

#[napi(
ts_arg_type = "(data: { status: number; progress: bigint; total: bigint }) => void"
ts_arg_type = "(data: { status: UpdateStatus; progress: bigint; total: bigint }) => void"
)]
progress_callback: Option<napi::JsFunction>,

Expand Down

0 comments on commit ee7b3ae

Please sign in to comment.