We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3224507 commit d8abfe1Copy full SHA for d8abfe1
common/src/types/source.ts
@@ -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
+ */
8
export type Source<T> =
9
| T
10
| Promise<T>
0 commit comments