Skip to content

Commit

Permalink
fix(types): export types
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Aug 22, 2021
1 parent e6343b3 commit 363b797
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
7 changes: 6 additions & 1 deletion src/core/macros.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,19 @@ 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'
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
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './core/transform'
export * from './types'
6 changes: 0 additions & 6 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 363b797

Please sign in to comment.