npm install --save @types/elm
This package contains type definitions for elm (http://elm-lang.org).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/elm.
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;
}
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: none
These definitions were written by Dénes Harmath, and Renan Vaz .