diff --git a/package.json b/package.json index e2b20346a8..89a94af6ca 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,6 @@ "ui/tree", "ui/@types/defer-promise", "ui/@types/lichess", - "ui/@types/lichess-jquery", - "ui/@types/mithril" + "ui/@types/lichess-jquery" ] } diff --git a/ui/@types/mithril/index.d.ts b/ui/@types/mithril/index.d.ts deleted file mode 100644 index 5a38a59831..0000000000 --- a/ui/@types/mithril/index.d.ts +++ /dev/null @@ -1,56 +0,0 @@ -declare namespace Mithril { - interface Property { - (): T; - (v: T): void; - } - - type Renderable = Array | - VirtualElement | string | null | undefined; - - interface Static { - (tag: string): VirtualElement; - (tag: string, attrs: Attributes): VirtualElement; - (tag: string, attrs: Attributes, ...children: Renderable[]): VirtualElement; - (tag: string, ...children: Renderable[]): VirtualElement; - - prop(d: T): Property; - - module(el: Element, module: Module): void; - - startComputation(): void; - endComputation(): void; - - redraw: Redraw; - } - - type Config = (el: Element, isUpdate: boolean, ctx: any, vdom: VirtualElement) => void; - - interface Attributes { - class?: string; - className?: string; - config?: Config; - key?: string | number; - [property: string]: any; - } - - interface Module { - controller(): T; - view(ctrl: T): Renderable; - } - - type RedrawStrategy = 'all' | 'diff' | 'none'; - - interface Redraw { - (forceSync?: boolean): void; - strategy(strategy: RedrawStrategy): void; - } - - interface VirtualElement { - } -} - - -declare module "mithril" { - const m: Mithril.Static; - export = m; -} diff --git a/ui/@types/mithril/package.json b/ui/@types/mithril/package.json deleted file mode 100644 index 471fa284b8..0000000000 --- a/ui/@types/mithril/package.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "@types/mithril", - "version": "1.0.0", - "author": "Thibault Duplessis", - "license": "AGPL-3.0" -}