UNPKG

superpack

Version:

JavaScript implementation of the SuperPack extensible schemaless binary encoding format

22 lines (18 loc) 430 B
// @flow export type ExtensionPoint = number; export type ExtensionMap = { [extensionPoint : ExtensionPoint] : { detector : any => boolean, serialiser : any => any, deserialiser : any => any } }; declare export default class Extendable { extensions: ExtensionMap; extend( extensionPoint: ExtensionPoint, detector: any => boolean, serialiser: any => any, deserialiser: any => any ): void }