tryOnScopeDispose.d.ts 204 B

1234567
  1. import type { Fn } from './types';
  2. /**
  3. * Call onScopeDispose() if it's inside a effect scope lifecycle, if not, do nothing
  4. *
  5. * @param fn
  6. */
  7. export declare function tryOnScopeDispose(fn: Fn): boolean;