export const PatchTypes = new Map < string , RomPatchType > ( ) ; export interface RomPatchType { patch ( rom , patch ) : Buffer ; } export function registerPatchType ( ext , def ) { PatchTypes . set ( ext , def ) ; }