```Type 'RelinkHook<G>' is not assignable to type '<T extends EntryType>(source_item: LiveEntryTypes
8 Replies
This is without any other changes we've made
ignore the
as any
, it was just me trying thingsTS Playground - An online editor for exploring TypeScript and JavaS...
The Playground lets you write TypeScript or JavaScript online in a safe and sharable way.
could you play with this until it breaks
sure
I instantiated
let item = null as unknown as RegEntry<'foo'>;
like this
because I don't have a concrete definition of RegEntry
basicallyyeah reasonable
shouldn't matter, we're not running it
yeah
lying at compile time that it's of type RegEntry<'foo'> so I can use it
I'm just not sure why this isn't reproducing your problem
...I swear if this is some enum stupidity
I don't like enums
in Typescript that is
it's plenty fine normally
oh whoops