Files
DefinitelyTyped/types/av/baseTypes.d.ts
Candid Dauth 7998ced84d Add typings for aurora.js (av) (#51040)
* Add av typings

* Migrate to exports rather than a namespace

* Revert back to namespace approach

* Write tests and fix bugs

* Convert indentation to spaces

* Remove all files except index.d.ts from "files" in tsconfig
2021-02-17 14:12:50 +00:00

25 lines
669 B
TypeScript

/// <reference path="./buffer.d.ts" />
/// <reference path="./bufferList.d.ts" />
declare namespace AV {
interface Format {
formatID: string;
sampleRate: number;
channelsPerFrame: number;
bitsPerChannel: number;
}
type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array;
interface Metadata {
[key: string]: any;
}
type BufferFormats = Buffer | TypedArray | ArrayBuffer | BufferList;
type Encoding = "ascii" | "utf8" | "utf16-be" | "utf16-le" | "utf16-bom";
class UnderflowError extends Error {
}
}