Argument of type '{ _id: string; view: { view1: string; }; }' is not assignable to parameter of type 'ViewDocument<ActionCouchDoc> | (ActionCouchDoc & MaybeDocument)'.
Object literal may only specify known properties, and 'view' does not exist in type 'ViewDocument<ActionCouchDoc> | (ActionCouchDoc & MaybeDocument)
Expected Behavior
I should be able to define functions passing a string to views field
Current Behavior
It throws the error
Possible Solution
change
to
Context
I've been having to cast the string to any for it to stop complaining and it still woks
Your Environment