MyCrypto/common/utils/types.ts
Daniel Ternyak af84a589c5 Redux promise middleware (v2) (#233)
* add redux-promise-middleware to package.json and update package-lock.json

* intergrate redux-promise-middleware and simplify rates by replacing saga with promise

* fix unrelated breaking test

* -improve user messaging when network request fails. \n Clean up rates actions and reducers

* Address tslint errors
2017-09-25 20:41:11 -07:00

5 lines
182 B
TypeScript

// Maps interface keys to optional
export type Optional<T> = { [P in keyof T]?: T[P] };
// Maps interface keys to nullable
export type Nullable<T> = { [P in keyof T]: T[P] | null };