UNPKG

@oiij/use

Version:

Som Composable Functions for Vue 3

13 lines (12 loc) 560 B
import * as vue27 from "vue"; import { TemplateRef } from "vue"; import { MaybeComputedElementRef } from "@vueuse/core"; //#region src/composables/use-auto-ratio.d.ts declare function useAutoRatio(templateRef?: TemplateRef<HTMLElement>, ratio?: number, target?: MaybeComputedElementRef): { templateRef: Readonly<vue27.ShallowRef<HTMLElement | null>> | undefined; width: vue27.ComputedRef<number>; height: vue27.ComputedRef<number>; }; type UseAutoRatioReturns = ReturnType<typeof useAutoRatio>; //#endregion export { UseAutoRatioReturns, useAutoRatio };