UNPKG

emfular

Version:

Pure TS library with basic types and parser to move from XPath references to runtime models

6 lines (5 loc) 376 B
import { Deserializer } from "./deserializer"; import { Referencable } from "../referencing/referencable/referenceable"; export type ConstructorPointer = ($ref: string) => (p: Deserializer) => Referencable; export type ConstructorPointerFor<T extends Referencable> = ($ref: string) => (p: Deserializer) => T; export type ConstructorPointers = Map<string, ConstructorPointer>;