javascript-binary-converter
Version:
A utility package to quickly handle and convert various Javascript binary objects
26 lines (17 loc) • 625 B
text/typescript
export interface ImageCreationConfig {
maxSize?: number
type?: 'image/png' | 'image/jpeg'
}
export interface BlobCreationConfig{
type?:"string"//a MIME type
}
export interface ToBytesConfig {
endianness?: 'LITTLE' | 'BIG' ,
isSigned?:boolean
}
export interface FloatConversionConfig{
precision?:'SINGLE'|'DOUBLE'
}
export type TypedArray = Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | BigInt64Array | BigUint64Array | Float32Array | Float64Array
export type BytesArray = Array<string>
export type DecimalBytesArray = Array<number>