diff --git a/src/core/macros.ts b/src/core/macros.ts index 407340d..c096a48 100644 --- a/src/core/macros.ts +++ b/src/core/macros.ts @@ -13,7 +13,6 @@ import { } from '@babel/types' import { types as t } from '@babel/core' import { parseExpression } from '@babel/parser' -import { PropTypeData } from '../types' // Special compiler macros const DEFINE_PROPS = 'defineProps' @@ -21,6 +20,12 @@ const DEFINE_EMITS = 'defineEmits' const DEFINE_EXPOSE = 'defineExpose' const WITH_DEFAULTS = 'withDefaults' +export interface PropTypeData { + key: string + type: string[] + required: boolean +} + export function applyMacros(nodes: Statement[]) { let hasDefinePropsCall = false let hasDefineEmitCall = false diff --git a/src/index.ts b/src/index.ts index 27f13cf..659d5b2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1 +1,2 @@ export * from './core/transform' +export * from './types' diff --git a/src/types.ts b/src/types.ts index 18f8d1b..32df7b6 100644 --- a/src/types.ts +++ b/src/types.ts @@ -21,12 +21,6 @@ export interface ParsedSFC { script: ScriptTagMeta } -export interface PropTypeData { - key: string - type: string[] - required: boolean -} - export interface ScriptSetupTransformOptions { astTransforms?: { script?: (ast: Program) => Program