-
-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The MockerProxyRoute type does not work for strictNullChecks #124
Comments
jaywcjlove
added a commit
that referenced
this issue
Aug 13, 2020
@ikatyang Reference example. |
#125 (comment) can also reproduce the issue here. |
Here's the patch I used to workaround this issue: diff --git a/lib/index.d.ts b/lib/index.d.ts
index 2edca13a3814452a8170cb9cc0f856dd0d65553b..4511678106ca1111d9836f816012c76db8f4ab17 100644
--- a/lib/index.d.ts
+++ b/lib/index.d.ts
@@ -26,7 +26,7 @@ export declare type MockerResult = string | number | Array<any> | Record<string,
* }
* ```
*/
-export interface MockerProxyRoute extends Record<string, MockerResult> {
+export type MockerProxyRoute = Record<string, MockerResult> & {
/**
* This is the option parameter setting for apiMocker
* Priority processing.
* apiMocker(app, path, option)
* {@link MockerOption}
*/
_proxy?: MockerOption;
} |
@ikatyang Change the interface to type? |
jaywcjlove
added a commit
that referenced
this issue
Aug 13, 2020
Yes, the issue here is that |
@ikatyang Upgrade |
Thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version: 2.3.0
Steps to reproduce:
The text was updated successfully, but these errors were encountered: