reflux.d.ts 389 B

123456789101112131415
  1. import type {
  2. SafeRefluxStore,
  3. SafeStoreDefinition,
  4. } from 'sentry/utils/makeSafeRefluxStore';
  5. import type {Store, StoreDefinition} from 'reflux';
  6. type RemoveIndex<T> = {
  7. [P in keyof T as string extends P ? never : P]: T[P];
  8. };
  9. declare module 'reflux' {
  10. function createStore<T extends SafeStoreDefinition | StoreDefinition>(
  11. storeDefinition: T
  12. ): RemoveIndex<Store & T>;
  13. }