0.19.3 • Published 6 months ago
@types/elm v0.19.3
Installation
npm install --save @types/elm
Summary
This package contains type definitions for Elm (http://elm-lang.org).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/elm.
index.d.ts
// Type definitions for Elm 0.19
// Project: http://elm-lang.org
// Definitions by: Dénes Harmath <https://github.com/thSoft>
// Renan Vaz <https://github.com/renanpvaz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface ElmInstance<P = {}> {
Main: ElmMain<P>;
}
interface ElmMain<P> {
init(options: { node?: Node | undefined; flags?: any }): ElmApp<P>;
}
interface ElmApp<P> {
ports: P;
}
interface PortToElm<V> {
send(value: V): void;
}
interface PortFromElm<V> {
subscribe(handler: (value: V) => void): void;
unsubscribe(handler: (value: V) => void): void;
}
Additional Details
- Last updated: Thu, 08 Jul 2021 12:01:05 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Dénes Harmath, and Renan Vaz .
0.19.2
7 months ago
0.19.3
6 months ago
0.19.1
3 years ago
0.19.0
3 years ago
0.12.30
4 years ago
0.12.29
8 years ago
0.12.28
8 years ago
0.12.27-alpha
8 years ago
0.12.26-alpha
8 years ago
0.12.25-alpha
8 years ago
0.12.24-alpha
8 years ago
0.12.23-alpha
8 years ago
0.12.22-alpha
8 years ago
0.12.21-alpha
8 years ago
0.12.16-alpha
8 years ago
0.12.15-alpha
8 years ago