fix(napi-derive): PromiseRaw typegen

This commit is contained in:
LongYinan 2024-07-07 21:03:14 +08:00
parent 70a5fce68d
commit 38d041569a
No known key found for this signature in database
GPG Key ID: C3666B7FC82ADAD7
2 changed files with 4 additions and 4 deletions

View File

@ -213,7 +213,7 @@ static KNOWN_TYPES: Lazy<HashMap<&'static str, (&'static str, bool, bool)>> = La
("Either26", ("{} | {} | {} | {} | {} | {} | {} | {} | {} | {} | {} | {} | {} | {} | {} | {} | {} | {} | {} | {} | {} | {} | {} | {} | {} | {}", false, true)),
("external", ("object", false, false)),
("Promise", ("Promise<{}>", false, false)),
("PromiseRaw", ("PromiseRaw<{}>", false, false)),
("PromiseRaw", ("Promise<{}>", false, false)),
("AbortSignal", ("AbortSignal", false, false)),
("JsGlobal", ("typeof global", false, false)),
("External", ("ExternalObject<{}>", false, false)),

View File

@ -328,9 +328,9 @@ export declare function callbackReturnPromise<T>(functionInput: () => T | Promis
export declare function callbackReturnPromiseAndSpawn(jsFunc: (arg0: string) => Promise<string>): Promise<string>
export declare function callCatchOnPromise(input: PromiseRaw<number>): PromiseRaw<string>
export declare function callCatchOnPromise(input: Promise<number>): Promise<string>
export declare function callFinallyOnPromise(input: PromiseRaw<number>, onFinally: () => void): PromiseRaw<number>
export declare function callFinallyOnPromise(input: Promise<number>, onFinally: () => void): Promise<number>
export declare function callFunction(cb: () => number): number
@ -340,7 +340,7 @@ export declare function callFunctionWithArgAndCtx(ctx: Animal, cb: (arg: string)
export declare function callLongThreadsafeFunction(tsfn: (err: Error | null, arg: number) => unknown): void
export declare function callThenOnPromise(input: PromiseRaw<number>): PromiseRaw<string>
export declare function callThenOnPromise(input: Promise<number>): Promise<string>
export declare function callThreadsafeFunction(tsfn: (err: Error | null, arg: number) => unknown): void