Skip to content

Commit

Permalink
style(lint): enforce array-type
Browse files Browse the repository at this point in the history
  • Loading branch information
liangchunn committed Oct 16, 2018
1 parent dd659c2 commit 9f90748
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"allow-leading-underscore",
"allow-pascal-case"
],
"no-namespace": false
"no-namespace": false,
"array-type": [true, "array"]
}
}
10 changes: 5 additions & 5 deletions src/types/vue-template-compiler.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ declare module 'vue-template-compiler' {

interface CompiledResultFunctions {
render: () => VNode;
staticRenderFns: Array<() => VNode>;
staticRenderFns: (() => VNode)[];
}

interface ModuleOptions {
Expand Down Expand Up @@ -86,7 +86,7 @@ declare module 'vue-template-compiler' {
export interface ASTElement {
type: 1;
tag: string;
attrsList: Array<{ name: string; value: any }>;
attrsList: { name: string; value: any }[];
attrsMap: Record<string, any>;
parent: ASTElement | undefined;
children: ASTNode[];
Expand All @@ -100,8 +100,8 @@ declare module 'vue-template-compiler' {
hasBindings?: boolean;

text?: string;
attrs?: Array<{ name: string; value: any }>;
props?: Array<{ name: string; value: string }>;
attrs?: { name: string; value: any }[];
props?: { name: string; value: string }[];
plain?: boolean;
pre?: true;
ns?: string;
Expand Down Expand Up @@ -165,7 +165,7 @@ declare module 'vue-template-compiler' {
type: 2;
expression: string;
text: string;
tokens: Array<string | Record<string, any>>;
tokens: (string | Record<string, any>)[];
static?: boolean;
// 2.4 ssr optimization
ssrOptimizability?: SSROptimizability;
Expand Down

0 comments on commit 9f90748

Please sign in to comment.