@jiess/core
Version:
基于javascript的配置式渲染库,同时支持vue2,vue3和react
22 lines (21 loc) • 1.24 kB
TypeScript
import { TypeBase, TypeJiessEnv } from "../../common/type/index.js";
import { TypeComputedObj } from "./watcher/index.js";
import { UnObject } from "../../common/type/index.js";
import Component from "./core/Component/index.js";
import Jiess from "./core/index.js";
export declare const $check: (obj: unknown, v: unknown, k?: string) => boolean;
export declare function $watch(proxy: UnObject, param: UnObject | string, callback: Function): void;
export declare const $watchEffect: (fn: Function, flush?: string) => unknown;
export declare const $isReactive: (o: UnObject) => boolean;
export declare function $ref(value?: unknown): {
[key: string]: unknown;
[key: number]: unknown;
[key: symbol]: unknown;
};
export declare function $reactive(object: any): UnObject;
export declare function $computed(val: Function | TypeComputedObj, flush?: string): unknown;
export declare function $component<T>(name: string, component: Component<T>): void;
export declare function $useComponent(name: string): {};
export declare function $set(proxy: UnObject, field: TypeBase, value: unknown, param?: {}): any;
export declare function $entry(JiessEnv: TypeJiessEnv, frameParam: UnObject, contextParam: UnObject): Jiess;
export default $entry;