UNPKG

@antv/g2

Version:

the Grammar of Graphics in Javascript

6 lines (5 loc) 279 B
import { DisplayObject } from '@antv/g'; export type ElementDescriptor = { render(container: DisplayObject): void; }; export declare function createElement<T = Record<string, any>>(descriptor: ElementDescriptor | ElementDescriptor['render']): new (T?: any) => DisplayObject;