UNPKG

@farris/ui-vue

Version:

Farris Vue, a Farris Design based Vue3 component library.

25 lines (24 loc) 864 B
import { Component } from 'vue'; export interface NodeComponentMap { [key: string]: Component; } export declare enum NodeType { START = "Start Node", END = "End Node", IF = "If Node", SELECTOR = "Selector Node", EMPTY = "Empty Node", TEST = "Test Node", DYNAMIC = "Dynamic Node" } export declare const nodeMap: NodeComponentMap; export declare function getNodeComponentByType(type: string): Component; export declare function getNodeDisplayName(type: string): string; export declare function getAllSupportedNodeTypes(): Array<{ type: string; displayName: string; hasConfig: boolean; }>; export declare function isValidNodeType(type: string): boolean; export declare function getSupportedNodeTypes(): string[]; export declare function registerNodeType(nodeType: string, component: Component, displayName?: string): void;