Skip to content

Commit d8abfe1

Browse files
committed
add jsdoc for Source
1 parent 3224507 commit d8abfe1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

common/src/types/source.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* Represents a source of data.
3+
*
4+
* By default, can be a value or a promise.
5+
*
6+
* In the case that the type is a not function itself, this can also be a function that returns the value or promise.
7+
*/
18
export type Source<T> =
29
| T
310
| Promise<T>

0 commit comments

Comments
 (0)