Open JRJurman opened 2 years ago
In the following example, it's not possible to define a strict type for ref, since we don't explicitly export TramOneHTMLElement.
TramOneHTMLElement
const notesRef = useStore<{ ref: any }>({ ref: null }); useEffect((ref) => { notesRef.ref = ref; });
Ideally we'd like to do the following:
const notesRef = useStore<{ ref: TramOneHTMLElement | null }>({ ref: null });
We should look into how we can expose this interface in a way that consumers can easily import these types. We should probably also update the website to reflect the exposed types.
Summary
In the following example, it's not possible to define a strict type for ref, since we don't explicitly export
TramOneHTMLElement
.Ideally we'd like to do the following:
We should look into how we can expose this interface in a way that consumers can easily import these types. We should probably also update the website to reflect the exposed types.