From e724b60c9227e8629653c89269471d0742a8eef1 Mon Sep 17 00:00:00 2001 From: andraaspar Date: Thu, 18 May 2017 11:43:55 +0200 Subject: [PATCH 1/2] Improve feedback & auto-completion in attribute objects. --- types/mithril/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/mithril/index.d.ts b/types/mithril/index.d.ts index 46fbb061ab..e17064abfc 100644 --- a/types/mithril/index.d.ts +++ b/types/mithril/index.d.ts @@ -52,9 +52,9 @@ declare namespace Mithril { /** Creates a virtual element (Vnode). */ (selector: string, attributes: Attributes, ...children: Children[]): Vnode; /** Creates a virtual element (Vnode). */ - (component: ComponentTypes, attributes: Attrs & Lifecycle & { key?: string | number }, ...args: Children[]): Vnode; - /** Creates a virtual element (Vnode). */ (component: ComponentTypes, ...args: Children[]): Vnode; + /** Creates a virtual element (Vnode). */ + (component: ComponentTypes, attributes: Attrs & Lifecycle & { key?: string | number }, ...args: Children[]): Vnode; /** Creates a fragment virtual element (Vnode). */ fragment(attrs: Lifecycle & { [key: string]: any }, children: ChildArrayOrPrimitive): Vnode; /** Turns an HTML string into a virtual element (Vnode). Do not use trust on unsanitized user input. */ From 0129c3b4a2771ecddd4e252eb8d220c1168d7a14 Mon Sep 17 00:00:00 2001 From: andraaspar Date: Fri, 19 May 2017 15:32:24 +0200 Subject: [PATCH 2/2] Fixed tslint rules. --- types/mithril/tslint.json | 1 + 1 file changed, 1 insertion(+) diff --git a/types/mithril/tslint.json b/types/mithril/tslint.json index 4f44991c3c..f60b65d69d 100644 --- a/types/mithril/tslint.json +++ b/types/mithril/tslint.json @@ -1,6 +1,7 @@ { "extends": "dtslint/dt.json", "rules": { + "object-literal-key-quotes": false, "no-empty-interface": false } }