Skip to content

Commit 63f9077

Browse files
committed
import as types
1 parent 65b683a commit 63f9077

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+89
-88
lines changed

src/compiler/to-function.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { noop, extend } from 'shared/util'
44
import { warn as baseWarn, tip } from 'core/util/debug'
55
import { generateCodeFrame } from './codeframe'
6-
import { Component } from 'typescript/component'
6+
import type { Component } from 'typescript/component'
77

88
type CompiledFunctionResult = {
99
render: Function

src/core/components/keep-alive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { isRegExp, remove } from 'shared/util'
44
import { getFirstComponentChild } from 'core/vdom/helpers/index'
55
import VNode from 'core/vdom/vnode'
6-
import { VNodeComponentOptions, VNodeData } from 'typescript/vnode'
6+
import type { VNodeComponentOptions, VNodeData } from 'typescript/vnode'
77

88
type VNodeCache = { [key: string]: VNode | null }
99

src/core/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { no, noop, identity } from 'shared/util'
44

55
import { LIFECYCLE_HOOKS } from 'shared/constants'
6-
import { Component } from 'typescript/component'
6+
import type { Component } from 'typescript/component'
77

88
export type Config = {
99
// user

src/core/global-api/assets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* @flow */
22

33
import { ASSET_TYPES } from 'shared/constants'
4-
import { GlobalAPI } from 'typescript/global-api'
4+
import type { GlobalAPI } from 'typescript/global-api'
55
import { isPlainObject, validateComponentName } from '../util/index'
66

77
export function initAssetRegisters(Vue: GlobalAPI) {

src/core/global-api/extend.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/* @flow */
22

33
import { ASSET_TYPES } from 'shared/constants'
4-
import { Component } from 'typescript/component'
5-
import { GlobalAPI } from 'typescript/global-api'
4+
import type { Component } from 'typescript/component'
5+
import type { GlobalAPI } from 'typescript/global-api'
66
import { defineComputed, proxy } from '../instance/state'
77
import { extend, mergeOptions, validateComponentName } from '../util/index'
88

src/core/global-api/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
mergeOptions,
1818
defineReactive,
1919
} from '../util/index'
20-
import { GlobalAPI } from 'typescript/global-api'
20+
import type { GlobalAPI } from 'typescript/global-api'
2121

2222
export function initGlobalAPI(Vue: GlobalAPI) {
2323
// config

src/core/global-api/mixin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* @flow */
22

3-
import { GlobalAPI } from 'typescript/global-api'
3+
import type { GlobalAPI } from 'typescript/global-api'
44
import { mergeOptions } from '../util/index'
55

66
export function initMixin(Vue: GlobalAPI) {

src/core/global-api/use.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* @flow */
22

3-
import { GlobalAPI } from 'typescript/global-api'
3+
import type { GlobalAPI } from 'typescript/global-api'
44
import { toArray } from '../util/index'
55

66
export function initUse(Vue: GlobalAPI) {

src/core/instance/events.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* @flow */
22

3-
import { Component } from 'typescript/component'
3+
import type { Component } from 'typescript/component'
44
import {
55
tip,
66
toArray,

src/core/instance/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { renderMixin } from './render'
55
import { eventsMixin } from './events'
66
import { lifecycleMixin } from './lifecycle'
77
import { warn } from '../util/index'
8-
import { GlobalAPI } from 'typescript/global-api'
8+
import type { GlobalAPI } from 'typescript/global-api'
99

1010
function Vue(options) {
1111
if (process.env.NODE_ENV !== 'production' && !(this instanceof Vue)) {

0 commit comments

Comments
 (0)