wip: further optimize bindings

This commit is contained in:
Evan You
2020-11-12 16:11:14 -05:00
parent 6a9b56ca60
commit 128621d6a0
7 changed files with 110 additions and 58 deletions

View File

@@ -61,8 +61,16 @@ export type HoistTransform = (
parent: ParentNode
) => void
export const enum BindingTypes {
DATA = 'data',
PROPS = 'props',
SETUP = 'setup',
CONST = 'const',
OPTIONS = 'options'
}
export interface BindingMetadata {
[key: string]: 'data' | 'props' | 'setup' | 'options' | 'setup-raw'
[key: string]: BindingTypes
}
interface SharedTransformCodegenOptions {