resolveIdentifier type signature doesn't allow for snapshotProcessor types #1778
Labels
help/PR welcome
Help/Pull request from contributors to fix the issue is welcome
Typescript
Issue related to Typescript typings
Bug report
Sandbox link or minimal reproduction code
https://codesandbox.io/s/kind-jepsen-cifwx?file=/src/index.ts
Describe the expected behavior
resolveIdentifier
should allow forsnapshotProcessor
types to be provided as thetype
argument.Describe the observed behavior
The compiler complains because the type signature of
resolveIdentifier
doesn't allow forsnapshotProcessor
types to be provided. Note that at run-time it accepts the type and works as expected, it's only the type definition that's too narrow.The type definition could be expanded from
IAnyModelType
toIAnyComplexType
to resolve this, but this would also allow other "complex" types such astypes.array
andtypes.map
as input, which is probably undesirable.The text was updated successfully, but these errors were encountered: