Skip to content

Instantly share code, notes, and snippets.

@tusharmath
Last active September 6, 2018 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tusharmath/b971e89581da9716a21aed942c5ef459 to your computer and use it in GitHub Desktop.
Save tusharmath/b971e89581da9716a21aed942c5ef459 to your computer and use it in GitHub Desktop.
PWA Component
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