Last active
September 6, 2018 15:09
-
-
Save tusharmath/b971e89581da9716a21aed942c5ef459 to your computer and use it in GitHub Desktop.
PWA Component
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Component<State, Params, Args extends any[]> { | |
init(...t: Args): State | |
update(action: Action<any>, state: State): State | |
command(action: Action<any>, state: State): State | |
view<VNode>(e: Emitter, s: State, p: Params): VNode | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment