You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
The JSDoc types do not include an example of importing a type with a generic.
e.g. this is the correct way:
/**
* @template T
* @typedef {import("../types").ThunkAction<T>} ThunkAction<T>
*
I won't enumerate the wrong ways I tried :D
It took me a good hour to figure it out, with lots of searching. I could not find any examples anywhere in the docs, nor in Stack Overflow. I figured someone else could benefit from my confusion.
The JSDoc types do not include an example of importing a type with a generic.
e.g. this is the correct way:
I won't enumerate the wrong ways I tried :D
It took me a good hour to figure it out, with lots of searching. I could not find any examples anywhere in the docs, nor in Stack Overflow. I figured someone else could benefit from my confusion.