72 lines
3.3 KiB
TypeScript
72 lines
3.3 KiB
TypeScript
import { CodegenResult, CompilerError, CompilerOptions, ComponentNode, DirectiveTransform, ExpressionNode, NodeTransform, ParserOptions, RootNode, SimpleExpressionNode, SourceLocation, TransformContext } from "@vue/compiler-core";
|
|||
|
|
export * from "@vue/compiler-core";
|
||
|
|
//#region temp/packages/compiler-dom/src/parserOptions.d.ts
|
||
|
|
export declare const parserOptions: ParserOptions;
|
||
|
|
//#endregion
|
||
|
|
//#region temp/packages/compiler-dom/src/runtimeHelpers.d.ts
|
||
|
|
export declare const V_MODEL_RADIO: unique symbol;
|
||
|
|
export declare const V_MODEL_CHECKBOX: unique symbol;
|
||
|
|
export declare const V_MODEL_TEXT: unique symbol;
|
||
|
|
export declare const V_MODEL_SELECT: unique symbol;
|
||
|
|
export declare const V_MODEL_DYNAMIC: unique symbol;
|
||
|
|
export declare const V_ON_WITH_MODIFIERS: unique symbol;
|
||
|
|
export declare const V_ON_WITH_KEYS: unique symbol;
|
||
|
|
export declare const V_SHOW: unique symbol;
|
||
|
|
export declare const TRANSITION: unique symbol;
|
||
|
|
export declare const TRANSITION_GROUP: unique symbol;
|
||
|
|
//#endregion
|
||
|
|
//#region temp/packages/compiler-dom/src/transforms/transformStyle.d.ts
|
||
|
|
export declare const transformStyle: NodeTransform;
|
||
|
|
//#endregion
|
||
|
|
//#region temp/packages/compiler-dom/src/errors.d.ts
|
||
|
|
interface DOMCompilerError extends CompilerError {
|
||
|
|
code: DOMErrorCodes;
|
||
|
|
}
|
||
|
|
export declare function createDOMCompilerError(code: DOMErrorCodes, loc?: SourceLocation): DOMCompilerError;
|
||
|
|
export declare enum DOMErrorCodes {
|
||
|
|
X_V_HTML_NO_EXPRESSION = 54,
|
||
|
|
X_V_HTML_WITH_CHILDREN = 55,
|
||
|
|
X_V_TEXT_NO_EXPRESSION = 56,
|
||
|
|
X_V_TEXT_WITH_CHILDREN = 57,
|
||
|
|
X_V_MODEL_ON_INVALID_ELEMENT = 58,
|
||
|
|
X_V_MODEL_ARG_ON_ELEMENT = 59,
|
||
|
|
X_V_MODEL_ON_FILE_INPUT_ELEMENT = 60,
|
||
|
|
X_V_MODEL_UNNECESSARY_VALUE = 61,
|
||
|
|
X_V_SHOW_NO_EXPRESSION = 62,
|
||
|
|
X_TRANSITION_INVALID_CHILDREN = 63,
|
||
|
|
X_IGNORED_SIDE_EFFECT_TAG = 64,
|
||
|
|
__EXTEND_POINT__ = 65
|
||
|
|
}
|
||
|
|
export declare const DOMErrorMessages: Record<DOMErrorCodes, string>;
|
||
|
|
//#endregion
|
||
|
|
//#region temp/packages/compiler-dom/src/transforms/vOn.d.ts
|
||
|
|
export declare const isKeyboardEvent: (key: string) => boolean;
|
||
|
|
export declare const resolveModifiers: (key: ExpressionNode | string, modifiers: SimpleExpressionNode[], context: TransformContext | null, loc: SourceLocation) => {
|
||
|
|
keyModifiers: string[];
|
||
|
|
nonKeyModifiers: string[];
|
||
|
|
eventOptionModifiers: string[];
|
||
|
|
};
|
||
|
|
//#endregion
|
||
|
|
//#region temp/packages/compiler-dom/src/htmlNesting.d.ts
|
||
|
|
/**
|
||
|
|
* Copied from https://github.com/MananTank/validate-html-nesting
|
||
|
|
* with ISC license
|
||
|
|
*
|
||
|
|
* To avoid runtime dependency on validate-html-nesting
|
||
|
|
* This file should not change very often in the original repo
|
||
|
|
* but we may need to keep it up-to-date from time to time.
|
||
|
|
*/
|
||
|
|
/**
|
||
|
|
* returns true if given parent-child nesting is valid HTML
|
||
|
|
*/
|
||
|
|
export declare function isValidHTMLNesting(parent: string, child: string): boolean;
|
||
|
|
//#endregion
|
||
|
|
//#region temp/packages/compiler-dom/src/transforms/Transition.d.ts
|
||
|
|
export declare function postTransformTransition(node: ComponentNode, onError: (error: CompilerError) => void, hasMultipleChildren?: (node: ComponentNode) => boolean): () => void;
|
||
|
|
//#endregion
|
||
|
|
//#region temp/packages/compiler-dom/src/index.d.ts
|
||
|
|
export declare const DOMNodeTransforms: NodeTransform[];
|
||
|
|
export declare const DOMDirectiveTransforms: Record<string, DirectiveTransform>;
|
||
|
|
export declare function compile(src: string | RootNode, options?: CompilerOptions): CodegenResult;
|
||
|
|
export declare function parse(template: string, options?: ParserOptions): RootNode;
|
||
|
|
//#endregion
|