2.2.3 • Published 1 year ago

@types/mithril-global v2.2.3

Weekly downloads
121
License
MIT
Repository
github
Last release
1 year 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

1 year ago

2.2.0

1 year ago

2.2.3

1 year ago

2.2.2

1 year ago

2.0.4

3 years ago

2.0.3

3 years ago

2.0.2

4 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.1.2

6 years ago

1.1.1

7 years ago

1.1.0

8 years ago