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 {
13
13
} from '@babel/types'
14
14
import { types as t } from '@babel/core'
15
15
import { parseExpression } from '@babel/parser'
16
- import { PropTypeData } from '../types'
17
16
18
17
// Special compiler macros
19
18
const DEFINE_PROPS = 'defineProps'
20
19
const DEFINE_EMITS = 'defineEmits'
21
20
const DEFINE_EXPOSE = 'defineExpose'
22
21
const WITH_DEFAULTS = 'withDefaults'
23
22
23
+ export interface PropTypeData {
24
+ key : string
25
+ type : string [ ]
26
+ required : boolean
27
+ }
28
+
24
29
export function applyMacros ( nodes : Statement [ ] ) {
25
30
let hasDefinePropsCall = false
26
31
let hasDefineEmitCall = false
Original file line number Diff line number Diff line change 1
1
export * from './core/transform'
2
+ export * from './types'
Original file line number Diff line number Diff line change @@ -21,12 +21,6 @@ export interface ParsedSFC {
21
21
script : ScriptTagMeta
22
22
}
23
23
24
- export interface PropTypeData {
25
- key : string
26
- type : string [ ]
27
- required : boolean
28
- }
29
-
30
24
export interface ScriptSetupTransformOptions {
31
25
astTransforms ?: {
32
26
script ?: ( ast : Program ) => Program
You can’t perform that action at this time.
0 commit comments