Generic & intersection
I'm looking to have a helper
I wanted to write this :
But it doesn't work.
I want to retain both types
Is there a way to do that ?
I also tried to write a function :
But it doesn't work either
PS: I'm using
arkWithMetadata, which basically takes a base type and add { metadata: { id: <id> }}I wanted to write this :
But it doesn't work.
I want to retain both types
doc and id. Is there a way to do that ?
I also tried to write a function :
But it doesn't work either
PS: I'm using
v2.0.0-rc.18