Skip to content

Commit

Permalink
refactor: Use interface as comment result type
Browse files Browse the repository at this point in the history
  • Loading branch information
HcySunYang committed Jan 16, 2019
1 parent edf2e57 commit 77ca8f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/parser/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export * from './sfcToAST'
export * from './parseJavascript'
export * from './parseTemplate'
export * from './helper'
export * from './jscomments'

export type PropType = string | string[] | null

Expand Down
2 changes: 1 addition & 1 deletion packages/parser/lib/jscomments.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { isCommentLine, isCommentBlock } from './helper'
import * as bt from '@babel/types'

export type CommentResult = {
export interface CommentResult {
default: string[]
[key: string]: string[]
}
Expand Down

0 comments on commit 77ca8f5

Please sign in to comment.