UNPKG

1.23 kBTypeScriptView Raw
1import {
2 FormCreate,
3 FormRule as $FormRule,
4 Options as $Options,
5 Rule as $Rule,
6 Creator as $Creator,
7 Control as $Control,
8 Api as $Api,
9 Effect as $Effect,
10 Parser as $Parser
11} from "@form-create/core";
12import Maker from "./maker";
13import {ApiAttrs, CreatorAttrs, OptionAttrs, RuleAttrs} from "./config";
14
15declare module 'vue/types/vue' {
16 interface Vue {
17 $formCreate: FormCreate<Maker, OptionAttrs, CreatorAttrs, RuleAttrs, ApiAttrs>;
18 }
19}
20
21declare const formCreate: FormCreate<Maker, OptionAttrs, CreatorAttrs, RuleAttrs, ApiAttrs>;
22export default formCreate;
23export declare const maker: typeof formCreate.maker;
24export type FormRule = $FormRule<OptionAttrs, CreatorAttrs, RuleAttrs, ApiAttrs>
25export type Options = $Options<OptionAttrs, CreatorAttrs, RuleAttrs, ApiAttrs>
26export type Rule = $Rule<OptionAttrs, CreatorAttrs, RuleAttrs, ApiAttrs>
27export type Effect = $Effect<OptionAttrs, CreatorAttrs, RuleAttrs, ApiAttrs>
28export type Creator = $Creator<OptionAttrs, CreatorAttrs, RuleAttrs, ApiAttrs>
29export type Control = $Control<OptionAttrs, CreatorAttrs, RuleAttrs, ApiAttrs>
30export type Api = $Api<OptionAttrs, CreatorAttrs, RuleAttrs, ApiAttrs>
31export type Parser = $Parser