narrative-studio-sdk
Version:
Narrative SDK for building apps on the Narrative Studio
9 lines (8 loc) • 524 B
TypeScript
import { FileTransformRule } from './Scheme.types';
export type RegisteredFunction = ((input: string, currentValue?: string, context?: any) => string) | ((source: string, target: string, context?: any) => {
source: string;
target: string;
});
export declare function registerFunction(id: string, fn: RegisteredFunction): void;
export declare function getFunctionById(id: string): RegisteredFunction | undefined;
export declare function resolveTransformRuleFunctions(rules: FileTransformRule[]): FileTransformRule[];