File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ export function Clock() {
12
12
// return time;
13
13
14
14
// The above is a shorthand for this
15
- // (but with a cast to string to appease Glint's restrictive ContentValue type)
16
- // (Date is a renderable value, but Glint doesn't think so)
17
- return ( ) => time . current . toString ( ) ;
15
+ return ( ) => time . current as Date & { toHTML ( ) : string } ;
16
+ // this cast is a Glint Hack
17
+ // because Glint things Date can't be rendered...
18
18
} ) ;
19
19
}
20
20
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import type TimeFormat from 'test-app/helpers/time-format';
7
7
8
8
declare module '@glint/environment-ember-loose/registry' {
9
9
export default interface Registry {
10
- 'clock' : typeof Clock & { ( ) : typeof Clock } ;
10
+ 'clock' : typeof Clock ;
11
11
'time-format' : typeof TimeFormat ;
12
12
// Examples
13
13
// state: HelperLike<{ Args: {}, Return: State }>;
You can’t perform that action at this time.
0 commit comments