We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5cf2c48 commit be3d1b4Copy full SHA for be3d1b4
1 file changed
src/Reference.ts
@@ -10,8 +10,8 @@ export type ReferenceOptions<TValue = unknown> = {
10
map?: (value: unknown) => TValue;
11
};
12
13
-export function create(key: string, options?: ReferenceOptions) {
14
- return new Reference(key, options);
+export function create<TValue = unknown>(key: string, options?: ReferenceOptions<TValue>) {
+ return new Reference<TValue>(key, options);
15
}
16
17
export default class Reference<TValue = unknown> {
0 commit comments