UNPKG

@pionjs/pion

Version:

Hooks for web components

12 lines (11 loc) 259 B
export interface Ref<T> { current: T; } /** * @function * @template T * @param {T} initialValue * @return {{ current: T }} Ref */ export declare function useRef<T>(): Ref<T | undefined>; export declare function useRef<T>(initialValue: T): Ref<T>;