File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
packages/@glimmer/reference/lib Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ class ReferenceImpl<T = unknown> implements Reference<T> {
56
56
}
57
57
}
58
58
59
- export function createPrimitiveRef < T = unknown > ( value : T ) : Reference < T > {
59
+ export function createPrimitiveRef < T > ( value : T ) : Reference < T > {
60
60
const ref = new ReferenceImpl < T > ( UNBOUND ) ;
61
61
62
62
ref . tag = CONSTANT_TAG ;
@@ -74,8 +74,8 @@ export const NULL_REFERENCE = createPrimitiveRef(null);
74
74
export const TRUE_REFERENCE = createPrimitiveRef ( true as const ) ;
75
75
export const FALSE_REFERENCE = createPrimitiveRef ( false as const ) ;
76
76
77
- export function createConstRef ( value : unknown , debugLabel : false | string ) : Reference {
78
- const ref = new ReferenceImpl ( CONSTANT ) ;
77
+ export function createConstRef < T > ( value : T , debugLabel : false | string ) : Reference < T > {
78
+ const ref = new ReferenceImpl < T > ( CONSTANT ) ;
79
79
80
80
ref . lastValue = value ;
81
81
ref . tag = CONSTANT_TAG ;
@@ -87,8 +87,8 @@ export function createConstRef(value: unknown, debugLabel: false | string): Refe
87
87
return ref ;
88
88
}
89
89
90
- export function createUnboundRef ( value : unknown , debugLabel : false | string ) : Reference {
91
- const ref = new ReferenceImpl ( UNBOUND ) ;
90
+ export function createUnboundRef < T > ( value : T , debugLabel : false | string ) : Reference < T > {
91
+ const ref = new ReferenceImpl < T > ( UNBOUND ) ;
92
92
93
93
ref . lastValue = value ;
94
94
ref . tag = CONSTANT_TAG ;
You can’t perform that action at this time.
0 commit comments