Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Commit 363b797

Browse files
committed
fix(types): export types
1 parent e6343b3 commit 363b797

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/core/macros.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,19 @@ import {
1313
} from '@babel/types'
1414
import { types as t } from '@babel/core'
1515
import { parseExpression } from '@babel/parser'
16-
import { PropTypeData } from '../types'
1716

1817
// Special compiler macros
1918
const DEFINE_PROPS = 'defineProps'
2019
const DEFINE_EMITS = 'defineEmits'
2120
const DEFINE_EXPOSE = 'defineExpose'
2221
const WITH_DEFAULTS = 'withDefaults'
2322

23+
export interface PropTypeData {
24+
key: string
25+
type: string[]
26+
required: boolean
27+
}
28+
2429
export function applyMacros(nodes: Statement[]) {
2530
let hasDefinePropsCall = false
2631
let hasDefineEmitCall = false

src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
export * from './core/transform'
2+
export * from './types'

src/types.ts

-6
Original file line numberDiff line numberDiff 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-
3024
export interface ScriptSetupTransformOptions {
3125
astTransforms?: {
3226
script?: (ast: Program) => Program

0 commit comments

Comments
 (0)