Skip to content

Commit 8acfdb3

Browse files
S-YOUposva
authored andcommitted
fix a typo on type definition name (vuejs#5103)
1 parent be9ac62 commit 8acfdb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/codegen/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { camelize, no } from 'shared/util'
77

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

1212
// configurable state
1313
let warn
@@ -246,7 +246,7 @@ function genDirectives (el: ASTElement): string | void {
246246
for (i = 0, l = dirs.length; i < l; i++) {
247247
dir = dirs[i]
248248
needRuntime = true
249-
const gen: DirctiveFunction = platformDirectives[dir.name] || baseDirectives[dir.name]
249+
const gen: DirectiveFunction = platformDirectives[dir.name] || baseDirectives[dir.name]
250250
if (gen) {
251251
// compile-time directive that manipulates AST.
252252
// returns true if it also needs a runtime counterpart.

0 commit comments

Comments
 (0)