mirror of
https://github.com/napi-rs/napi-rs.git
synced 2025-12-08 19:56:07 +00:00
fix(napi-derive): PromiseRaw typegen
This commit is contained in:
parent
70a5fce68d
commit
38d041569a
@ -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)),
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user