22 ms·
Or: cons foo = [‘foo’] as const;
by halflife 1y ago
Or:
cons foo = [‘foo’] as const;
- wk_end 1y ago> In a case like that `as const` doesn't work, since the function doesn't expect a readonly argument.
- halflife 1y agoAh, missed that. Sorry.
- cat-whisperer 1y agoI don’t get this? why do I need to say as const?