Open SrBrahma opened 3 years ago
Fixes #101.
As DocId class isn't used directly but only to be checked by instanceof, this prop is just to deal with TS so it won't treat {} as any non-nullish type, messing with keys of model as stated in the linked issue above.
instanceof
{}
The two problematic cases of the issue are fixed, as we can see:
Fixes #101.
As DocId class isn't used directly but only to be checked by
instanceof
, this prop is just to deal with TS so it won't treat{}
as any non-nullish type, messing with keys of model as stated in the linked issue above.