2.2.3 • Published 6 months ago

@types/mithril-global v2.2.3

Weekly downloads
121
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/mithril-global

Summary

This package contains type definitions for Mithril (https://mithril.js.org/).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mithril-global.

index.d.ts

// Type definitions for non-npm package Mithril 2.0
// Project: https://mithril.js.org/
// Definitions by: Mike Linkovich <https://github.com/spacejack>
//                 Claudia Meadows <https://github.com/dead-claudia>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.2

// Global Mithril types

/// <reference types="mithril" />

import * as mithril from 'mithril';
import * as stream from 'mithril/stream';

declare namespace MithrilGlobal {
    export type CommonAttributes<A, S> = mithril.CommonAttributes<A, S>;
    export type Hyperscript = mithril.Hyperscript;
    export type RouteResolver<A = {}, S = {}> = mithril.RouteResolver<A, S>;
    export type RouteDefs = mithril.RouteDefs;
    export type RouteOptions = mithril.RouteOptions;
    export type Route = mithril.Route;
    export type RequestOptions<T> = mithril.RequestOptions<T>;
    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<A = {}, S = {}> = mithril.Vnode<A, S>;
    export type VnodeDOM<A = {}, S = {}> = mithril.VnodeDOM<A, S>;
    export type CVnode<A = {}> = mithril.CVnode<A>;
    export type CVnodeDOM<A = {}> = mithril.CVnodeDOM<A>;
    export type Component<A = {}, S = {}> = mithril.Component<A, S>;
    export type Comp<A = {}, S extends Partial<mithril.Component<A, S>> = {}> = mithril.Comp<A, S>;
    export type ClassComponent<A = {}> = mithril.ClassComponent<A>;
    export type FactoryComponent<A = {}> = mithril.FactoryComponent<A>;
    export type ComponentTypes<A = {}, S extends Partial<mithril.Component<A, S>> = {}> = mithril.ComponentTypes<A, S>;
    export type Attributes = mithril.Attributes;
    export type Static = mithril.Static & { stream: typeof stream };
    export type Stream<T> = stream<T>;
}

declare const MithrilGlobal: MithrilGlobal.Static;
export = MithrilGlobal;
export as namespace m;

Additional Details

  • Last updated: Thu, 24 Mar 2022 16:31:47 GMT
  • Dependencies: @types/mithril
  • Global values: m

Credits

These definitions were written by Mike Linkovich, and Claudia Meadows.

2.2.1

8 months ago

2.2.0

8 months ago

2.2.3

6 months ago

2.2.2

7 months ago

2.0.4

2 years ago

2.0.3

2 years ago

2.0.2

3 years ago

2.0.1

4 years ago

2.0.0

5 years ago

1.1.2

5 years ago

1.1.1

6 years ago

1.1.0

7 years ago