@oiij/use
Version:
Som Composable Functions for Vue 3
12 lines (11 loc) • 477 B
text/typescript
import { MaybeComputedElementRef } from "@vueuse/core";
import * as vue9 from "vue";
//#region src/composables/use-auto-ratio.d.ts
declare function useAutoRatio(ratio?: number, target?: MaybeComputedElementRef): {
domRef: vue9.Ref<HTMLElement | undefined, HTMLElement | undefined>;
width: vue9.ComputedRef<number>;
height: vue9.ComputedRef<number>;
};
type UseAutoRatioReturns = ReturnType<typeof useAutoRatio>;
//#endregion
export { UseAutoRatioReturns, useAutoRatio };