UNPKG

@yellicode/elements

Version:

The meta model API for Yellicode - an extensible code generator.

19 lines (18 loc) 600 B
import { Type } from './interfaces'; /** * Represents a type resolver, which can return a built-in type * based on a uniqure type id. */ export interface TypeResolver { resolve(id: string): Type | undefined; } /** * Resolves built-in primitive types. An additional custom resolver * can be provided to resolve custom applciation types that are not * part of a profile. */ export declare class BasicTypeResolver implements TypeResolver { private customResolver?; constructor(customResolver?: TypeResolver | undefined); resolve(id: string): Type | undefined; }