Skip to content

Commit f33ca99

Browse files
committed
add semicolons to inline flow type declarations to workaround babel-sublime highligting issue
1 parent e7083d0 commit f33ca99

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

src/compiler/codegen/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import { baseWarn, pluckModuleFunction } from '../helpers'
55
import baseDirectives from '../directives/index'
66
import { camelize, no } from 'shared/util'
77

8-
type TransformFunction = (el: ASTElement, code: string) => string
9-
type DataGenFunction = (el: ASTElement) => string
10-
type DirctiveFunction = (el: ASTElement, dir: ASTDirective, warn: Function) => boolean
8+
type TransformFunction = (el: ASTElement, code: string) => string;
9+
type DataGenFunction = (el: ASTElement) => string;
10+
type DirctiveFunction = (el: ASTElement, dir: ASTDirective, warn: Function) => boolean;
1111

1212
// configurable state
1313
let warn

src/core/config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export type Config = {
2020
_assetTypes: Array<string>;
2121
_lifecycleHooks: Array<string>;
2222
_maxUpdateCount: number;
23-
}
23+
};
2424

2525
const config: Config = {
2626
/**

src/core/util/props.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ type PropOptions = {
99
default: any,
1010
required: ?boolean,
1111
validator: ?Function
12-
}
12+
};
1313

1414
export function validateProp (
1515
key: string,

src/platforms/web/runtime/modules/dom-props.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function updateDOMProps (oldVnode: VNodeWithData, vnode: VNodeWithData) {
4646
}
4747

4848
// check platforms/web/util/attrs.js acceptValue
49-
type acceptValueElm = HTMLInputElement | HTMLSelectElement | HTMLOptionElement
49+
type acceptValueElm = HTMLInputElement | HTMLSelectElement | HTMLOptionElement;
5050

5151
function shouldUpdateValue (
5252
elm: acceptValueElm,

src/platforms/weex/compiler/modules/class.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
type StaticClassResult = {
1111
dynamic: boolean,
1212
classResult: string
13-
}
13+
};
1414

1515
function transformNode (el: ASTElement, options: CompilerOptions) {
1616
const warn = options.warn || baseWarn

src/platforms/weex/compiler/modules/style.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
type StaticStyleResult = {
1212
dynamic: boolean,
1313
styleResult: string
14-
}
14+
};
1515

1616
const normalize = cached(camelize)
1717

src/server/render-context.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type RenderState = {
1414
buffer: Array<string>;
1515
bufferIndex: number;
1616
key: string;
17-
}
17+
};
1818

1919
export class RenderContext {
2020
activeInstance: Component;

src/sfc/parser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const isSpecialTag = makeMap('script,style,template', true)
1010
type Attribute = {
1111
name: string,
1212
value: string
13-
}
13+
};
1414

1515
/**
1616
* Parse a single-file component (*.vue) file into an SFC Descriptor Object.

0 commit comments

Comments
 (0)