tryOnMounted.d.ts 285 B

12345678
  1. import type { Fn } from './types';
  2. /**
  3. * Call onMounted() if it's inside a component lifecycle, if not, just call the function
  4. *
  5. * @param fn
  6. * @param sync if set to false, it will run in the nextTick() of Vue
  7. */
  8. export declare function tryOnMounted(fn: Fn, sync?: boolean): void;