This repository was archived by the owner on Dec 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,19 @@ import {
1313} from '@babel/types'
1414import { types as t } from '@babel/core'
1515import { parseExpression } from '@babel/parser'
16- import { PropTypeData } from '../types'
1716
1817// Special compiler macros
1918const DEFINE_PROPS = 'defineProps'
2019const DEFINE_EMITS = 'defineEmits'
2120const DEFINE_EXPOSE = 'defineExpose'
2221const WITH_DEFAULTS = 'withDefaults'
2322
23+ export interface PropTypeData {
24+ key : string
25+ type : string [ ]
26+ required : boolean
27+ }
28+
2429export function applyMacros ( nodes : Statement [ ] ) {
2530 let hasDefinePropsCall = false
2631 let hasDefineEmitCall = false
Original file line number Diff line number Diff line change 11export * from './core/transform'
2+ export * from './types'
Original file line number Diff line number Diff line change @@ -21,12 +21,6 @@ export interface ParsedSFC {
2121 script : ScriptTagMeta
2222}
2323
24- export interface PropTypeData {
25- key : string
26- type : string [ ]
27- required : boolean
28- }
29-
3024export interface ScriptSetupTransformOptions {
3125 astTransforms ?: {
3226 script ?: ( ast : Program ) => Program
You can’t perform that action at this time.
0 commit comments