chore: replace some type casts and fix variable and filename typos (#93)

This commit is contained in:
Carlos Rodrigues
2019-10-05 15:38:02 +01:00
committed by Evan You
parent 23ff681418
commit fbabae0c0a
10 changed files with 51 additions and 51 deletions

View File

@@ -39,7 +39,7 @@ export type DirectiveTransform = (
needRuntime: boolean
}
// A structural directive transform is a techically a NodeTransform;
// A structural directive transform is a technically a NodeTransform;
// Only v-if and v-for fall into this category.
export type StructuralDirectiveTransform = (
node: ElementNode,
@@ -191,11 +191,11 @@ function createTransformContext(
if (identifiers[id] === undefined) {
identifiers[id] = 0
}
;(identifiers[id] as number)++
identifiers[id]!++
}
function removeId(id: string) {
;(context.identifiers[id] as number)--
context.identifiers[id]!--
}
return context