File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -119,10 +119,21 @@ describe('test using yet-another-fetch-mock', () => {
119119```
120120
121121
122- #### Types
122+ #### Typescript
123123Full documentation of types can be seen [ here] ( https://www.utgaard.xyz/yet-another-fetch-mock/ ) ,
124124or [ here] ( https://github.com/nutgaard/yet-another-fetch-mock/blob/master/src/types.ts ) if you prefer reading typescript code.
125125
126+ ##### !!!NB!!!
127+
128+ ** Known issue:**
129+ ` Argument of type '({ queryParams }: HandlerArgument) => MyDataInterface' is not assignable to parameter of type 'MockHandler'. `
130+ The solution is often to ensure that ` MyDataInterface ` is also a ` JsonObject ` .
131+ E.g
132+ ```
133+ mock.get('/my-url', () => mockData as MyDataInterface & JsonObject)
134+ ```
135+
136+
126137
127138### Tips
128139
You can’t perform that action at this time.
0 commit comments