// Type definitions for non-npm package Mithril 2.0 // Project: https://mithril.js.org/ // Definitions by: Mike Linkovich , Isiah Meadows // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 3.2 // Global Mithril types /// import * as mithril from 'mithril'; import * as stream from 'mithril/stream'; declare namespace MithrilGlobal { export type Lifecycle = mithril.Lifecycle; export type Hyperscript = mithril.Hyperscript; export type RouteResolver = mithril.RouteResolver; export type RouteDefs = mithril.RouteDefs; export type RouteOptions = mithril.RouteOptions; export type Route = mithril.Route; export type RequestOptions = mithril.RequestOptions; export type JsonpOptions = mithril.JsonpOptions; export type Child = mithril.Child; export type ChildArray = mithril.ChildArray; export type Children = mithril.Children; export type ChildArrayOrPrimitive = mithril.ChildArrayOrPrimitive; export type Vnode = {}> = mithril.Vnode; export type VnodeDOM = {}> = mithril.VnodeDOM; export type CVnode = mithril.CVnode; export type CVnodeDOM = mithril.CVnodeDOM; export type Component = mithril.Component; export type Comp = {}> = mithril.Comp; export type ClassComponent = mithril.ClassComponent; export type FactoryComponent = mithril.FactoryComponent; export type ComponentTypes = {}> = mithril.ComponentTypes; export type Attributes = mithril.Attributes; export type Static = mithril.Static & { stream: typeof stream }; export type Stream = stream; } declare const MithrilGlobal: MithrilGlobal.Static; export = MithrilGlobal; export as namespace m;