index.d.ts 454 B

123456789101112131415161718192021
  1. import { MaybeRef } from "@vueuse/core";
  2. //#region ../../packages/hooks/use-deprecated/index.d.ts
  3. type DeprecationParam = {
  4. from: string;
  5. replacement: string;
  6. scope: string;
  7. version: string;
  8. ref: string;
  9. type?: 'API' | 'Attribute' | 'Event' | 'Slot';
  10. };
  11. declare const useDeprecated: ({
  12. from,
  13. replacement,
  14. scope,
  15. version,
  16. ref,
  17. type
  18. }: DeprecationParam, condition: MaybeRef<boolean>) => void;
  19. //#endregion
  20. export { useDeprecated };