Skip to content

IDataType type error #68

Open
Open
@Fd929c2CE5fA

Description

@Fd929c2CE5fA

Thank you first for developing this lib, it is really fast and easy to use. ❤️

hash-wasm/lib/util.ts

Lines 14 to 15 in 373b796

export type ITypedArray = Uint8Array | Uint16Array | Uint32Array;
export type IDataType = string | Buffer | ITypedArray;

type Buffer = /*unresolved*/ any

Suggested fixes:

- export type ITypedArray = Uint8Array | Uint16Array | Uint32Array; 
- export type IDataType = string | Buffer | ITypedArray; 
+ export type IDataType = string | BufferSource; 

or

export type ITypedArray = Uint8Array | Uint16Array | Uint32Array; 
- export type IDataType = string | Buffer | ITypedArray; 
+ export type IDataType = string | ArrayBufferLike | ITypedArray; 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions