UNPKG

322 BTypeScriptView Raw
1import { Component } from "neweb-components";
2
3export interface IViewParams<PARAMS, DATA, CHILDREN extends { [index: string]: Component<any> }> {
4 params: PARAMS;
5 data: DATA;
6 children: CHILDREN;
7 dispatch(actionName: string, ...args: any[]): void | Promise<void>;
8 navigate(url: string): void;
9}