mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
* 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
25 lines
669 B
TypeScript
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 {
|
|
}
|
|
}
|