reflux.d.ts 268 B

1234567891011
  1. import type {Store, StoreDefinition} from 'reflux';
  2. type RemoveIndex<T> = {
  3. [P in keyof T as string extends P ? never : P]: T[P];
  4. };
  5. declare module 'reflux' {
  6. function createStore<T extends StoreDefinition>(
  7. storeDefinition: T
  8. ): RemoveIndex<Store & T>;
  9. }