UNPKG

typedux

Version:

Slightly adjusted Redux (awesome by default) for TS

22 lines (16 loc) 480 B
import {State} from "../../reducers/State" import {MockKey, MockStateStr1} from "./MockConstants" /** * Mock leaf state, dumb test state with test props */ export class MockLeafState implements State<typeof MockKey> { static readonly Key: typeof MockKey = MockKey readonly type: typeof MockKey = MockLeafState.Key // type = MockLeafState // str1:string = MockStateStr1 str2:string constructor(props:any = {}) { Object.assign(this,props) } }