types: improve ref typing (#8124)
* types: improve ref typing * types: message
This commit is contained in:
@@ -2,7 +2,7 @@ import { useHeight } from './use-height';
|
||||
import type { Ref } from 'vue';
|
||||
import type { BEM } from '../utils/create/bem';
|
||||
|
||||
export function usePlaceholder(contentRef: Ref<Element>, bem: BEM) {
|
||||
export function usePlaceholder(contentRef: Ref<Element | undefined>, bem: BEM) {
|
||||
const height = useHeight(contentRef);
|
||||
|
||||
return (renderContent: () => JSX.Element) => (
|
||||
|
||||
Reference in New Issue
Block a user