@yellicode/elements
Version:
The meta model API for Yellicode - an extensible code generator.
9 lines (8 loc) • 480 B
TypeScript
import { FactoryClassMap, createdElement } from './element-factory';
import { Element } from './interfaces';
export interface ElementBuilder {
/**
* Creates a new element of the specified type. The element will get an auto-generated ID if the element requires so.
*/
createElement<K extends keyof FactoryClassMap>(elementType: K, owner: Element | null, properties: any | null, initFn: ((element: createdElement<K>) => void) | null): createdElement<K>;
}