mirror of
https://github.com/napi-rs/napi-rs.git
synced 2025-12-08 19:56:07 +00:00
fix(napi-derive): TypedArray typegen (#3005)
This commit is contained in:
parent
f71d660b43
commit
25c159c500
@ -280,17 +280,27 @@ static KNOWN_TYPES: LazyLock<HashMap<&'static str, (&'static str, bool, bool)>>
|
||||
("ArrayBuffer", ("ArrayBuffer", false, false)),
|
||||
("JsArrayBuffer", ("ArrayBuffer", false, false)),
|
||||
("Int8Array", ("Int8Array", false, false)),
|
||||
("Int8ArraySlice", ("Int8Array", false, false)),
|
||||
("Uint8Array", ("Uint8Array", false, false)),
|
||||
("Uint8ArraySlice", ("Uint8Array", false, false)),
|
||||
("Uint8ClampedArray", ("Uint8ClampedArray", false, false)),
|
||||
("Uint8ClampedSlice", ("Uint8ClampedArray", false, false)),
|
||||
("Int16Array", ("Int16Array", false, false)),
|
||||
("Int16ArraySlice", ("Int16Array", false, false)),
|
||||
("Uint16Array", ("Uint16Array", false, false)),
|
||||
("Uint16ArraySlice", ("Uint16Array", false, false)),
|
||||
("Int32Array", ("Int32Array", false, false)),
|
||||
("Int32ArraySlice", ("Int32Array", false, false)),
|
||||
("Uint32Array", ("Uint32Array", false, false)),
|
||||
("Uint32ArraySlice", ("Uint32Array", false, false)),
|
||||
("Float32Array", ("Float32Array", false, false)),
|
||||
("Float32ArraySlice", ("Float32Array", false, false)),
|
||||
("Float64Array", ("Float64Array", false, false)),
|
||||
("Float64ArraySlice", ("Float64Array", false, false)),
|
||||
("BigInt64Array", ("BigInt64Array", false, false)),
|
||||
("BigInt64ArraySlice", ("BigInt64Array", false, false)),
|
||||
("BigUint64Array", ("BigUint64Array", false, false)),
|
||||
("BigUint64ArraySlice", ("BigUint64Array", false, false)),
|
||||
("DataView", ("DataView", false, false)),
|
||||
]);
|
||||
|
||||
|
||||
@ -627,7 +627,7 @@ Generated by [AVA](https://avajs.dev).
|
||||
␊
|
||||
export declare function createFunction(): (arg: number) => number␊
|
||||
␊
|
||||
export declare function createI32ArrayFromExternal(): Int32ArraySlice␊
|
||||
export declare function createI32ArrayFromExternal(): Int32Array␊
|
||||
␊
|
||||
export declare function createObj(): object␊
|
||||
␊
|
||||
@ -1203,9 +1203,9 @@ Generated by [AVA](https://avajs.dev).
|
||||
␊
|
||||
export declare function uInit8ArrayFromString(): Promise<Uint8Array>␊
|
||||
␊
|
||||
export declare function uint8ArrayFromData(): Uint8ArraySlice␊
|
||||
export declare function uint8ArrayFromData(): Uint8Array␊
|
||||
␊
|
||||
export declare function uint8ArrayFromExternal(): Uint8ArraySlice␊
|
||||
export declare function uint8ArrayFromExternal(): Uint8Array␊
|
||||
␊
|
||||
export interface UseNullableStruct {␊
|
||||
requiredNumberField: number␊
|
||||
|
||||
Binary file not shown.
@ -587,7 +587,7 @@ export declare function createExternalUtf16String(): string
|
||||
|
||||
export declare function createFunction(): (arg: number) => number
|
||||
|
||||
export declare function createI32ArrayFromExternal(): Int32ArraySlice
|
||||
export declare function createI32ArrayFromExternal(): Int32Array
|
||||
|
||||
export declare function createObj(): object
|
||||
|
||||
@ -1163,9 +1163,9 @@ export declare function u8ArrayToArray(input: Uint8Array): Array<number>
|
||||
|
||||
export declare function uInit8ArrayFromString(): Promise<Uint8Array>
|
||||
|
||||
export declare function uint8ArrayFromData(): Uint8ArraySlice
|
||||
export declare function uint8ArrayFromData(): Uint8Array
|
||||
|
||||
export declare function uint8ArrayFromExternal(): Uint8ArraySlice
|
||||
export declare function uint8ArrayFromExternal(): Uint8Array
|
||||
|
||||
export interface UseNullableStruct {
|
||||
requiredNumberField: number
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user