@vtj/coder
Version:
VTJ 是一款基于 Vue3 + Typescript 的低代码页面可视化设计器。内置低代码引擎、渲染器和代码生成器,面向前端开发者,开箱即用。 无缝嵌入本地开发工程,不改变前端开发流程和编码习惯。
15 lines (14 loc) • 1.11 kB
TypeScript
import { JSExpression, JSFunction } from '@vtj/core';
export declare function isJSExpression(data: any): data is JSExpression;
export declare function isJSFunction(x: any): x is JSFunction;
export declare function isJSCode(data: unknown): data is JSExpression | JSFunction;
export declare function JSCodeToString(data: unknown): string;
export declare function replaceThis(content: string): string;
export declare function replaceContext(content: string): string;
export declare function parseValue(val: unknown, stringify?: boolean, noThis?: boolean, computedKeys?: string[]): string;
export declare function replaceComputedValue(content: string, keys?: string[]): string;
export declare function replaceFunctionTag(content: string): string;
export declare function parsePlainObjectValue(obj?: Record<string, any>): string[];
export declare function getModifiers(modifiers?: Record<string, boolean>, isToString?: boolean): string[];
export declare function jsonToStyle(json: Record<string, any>): string;
export declare function skipUniComponents(components?: string[], uniComponents?: string[]): string[];