ahooks-vue
Version:
15 lines (14 loc) • 414 B
TypeScript
import { Ref } from 'vue-demi';
import { BasicTarget } from '../utils/dom';
export interface Options {
onExitFull?: () => void;
onFull?: () => void;
}
export interface Result {
isFullscreen: Ref<boolean>;
setFull: () => void;
exitFull: () => void;
toggleFull: () => void;
ref?: Ref;
}
export declare function useFullscreen(target: BasicTarget, options?: Options): Result;