rete-kit
Version:
Rete.js Kit ==== [](https://stand-with-ukraine.pp.ua) [](https://disco
17 lines (16 loc) • 1.01 kB
TypeScript
import { AngularVersion } from './stack/angular';
import { SvelteVersion } from './stack/svelte';
export declare const templatesPath: string;
export declare const entryScriptPath: string;
export type DefaultTemplateKey = 'zoom-at' | 'react-render' | `react${number}` | 'vue-render' | `vue${2 | 3}` | 'angular-render' | `angular${AngularVersion}` | 'svelte-render' | `svelte${SvelteVersion}` | 'lit-render' | `lit${3}` | 'dataflow' | 'arrange' | 'sizes' | 'readonly' | 'order-nodes' | 'selectable' | 'context-menu' | 'import-area-extensions' | 'minimap' | 'reroute' | 'history' | 'comments' | `stack-${string}`;
export declare class TemplateBuilder<Key extends string> {
private keys;
blockCommentRegex: RegExp;
constructor(keys: Key[]);
private normalizeLineEndings;
load(name: string): Promise<string>;
static getTemplates(): Promise<string[]>;
private replace;
build(template: string, format?: boolean): any;
getEntryScript(templateIds?: string[]): Promise<string>;
}