MCPcopy
hub / github.com/palantir/blueprint / getRef

Function getRef

packages/core/src/common/refs.ts:34–40  ·  view source on GitHub ↗
(ref: T | IRefObject<T>)

Source from the content-addressed store, hash-verified

32}
33
34export function getRef<T = HTMLElement>(ref: T | IRefObject<T>) {
35 if (ref && (ref as IRefObject<T>).current) {
36 return (ref as IRefObject<T>).current;
37 }
38
39 return ref as T;
40}

Callers 5

abstractButton.tsxFile · 0.90
DateInputClass · 0.90
componentDidUpdateMethod · 0.90
SuggestClass · 0.90
SelectClass · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected