You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect the following interface to work, but I get the error:
Type 'Promise' is not specified in the provided files but is required for property: 'promise'. Please include it.
In the docs we see that 'Interfaces with property references to other complex types ' are supported. since Promise is an other complex types I would assume it would work.
Is there some special configuration for including a tsconfig or do we need to import all type dependencies? or how should we handle such cases. We are currently investigating using this lib for mocking in test and dev environments and will need to support many such use cases such as dom types, react component types, etc.
Please advise :)
The text was updated successfully, but these errors were encountered:
Given:
types.ts
tsconfig.json
and my usage file test.ts
I would expect the following interface to work, but I get the error:
In the docs we see that
'Interfaces with property references to other complex types '
are supported. since Promise is an other complex types I would assume it would work.Is there some special configuration for including a tsconfig or do we need to import all type dependencies? or how should we handle such cases. We are currently investigating using this lib for mocking in test and dev environments and will need to support many such use cases such as dom types, react component types, etc.
Please advise :)
The text was updated successfully, but these errors were encountered: