@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
23 lines • 509 B
TypeScript
/**
* Codec that tries to decode data with multiple codecs in order.
*
* @template T
* @extends {Codec<T>}
*/
export class CodecWithFallback<T> extends Codec<T> {
/**
*
* @param {Codec<T>} codecs
*/
constructor(...codecs: Codec<T>);
/**
*
* @type {Codec<T>[]}
*/
children: Codec<T>[];
test(data: any): Promise<boolean>;
decode(data: any): Promise<T>;
#private;
}
import { Codec } from "./Codec.js";
//# sourceMappingURL=CodecWithFallback.d.ts.map