Skip to content
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

fix: fix error type in FunctionsResponseFailure #61

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

YogiLiu
Copy link

@YogiLiu YogiLiu commented Aug 1, 2023

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

The type of error in FunctionsResponseFailureis any.

What is the new behavior?

Set the type of error to FunctionsError.

Additional context

Sad :(

× eslint --report-unused-disable-directives --max-warnings 0 --fix:

   61:19  error  Unsafe array destructuring of a tuple element with an `any` value                   @typescript-eslint/no-unsafe-assignment
   65:23  error  Unsafe argument of type `any` assigned to a parameter of type `string | undefined`  @typescript-eslint/no-unsafe-argument
   65:23  error  Unsafe member access .message on an `any` value                                     @typescript-eslint/no-unsafe-member-access
  127:19  error  Unsafe array destructuring of a tuple element with an `any` value                   @typescript-eslint/no-unsafe-assignment
  131:23  error  Unsafe argument of type `any` assigned to a parameter of type `string | undefined`  @typescript-eslint/no-unsafe-argument
  131:23  error  Unsafe member access .message on an `any` value                                     @typescript-eslint/no-unsafe-member-access
  150:19  error  Unsafe array destructuring of a tuple element with an `any` value                   @typescript-eslint/no-unsafe-assignment
  157:23  error  Unsafe argument of type `any` assigned to a parameter of type `string | undefined`  @typescript-eslint/no-unsafe-argument
  157:23  error  Unsafe member access .message on an `any` value                                     @typescript-eslint/no-unsafe-member-access
  227:23  error  Unsafe argument of type `any` assigned to a parameter of type `string | undefined`  @typescript-eslint/no-unsafe-argument
  227:23  error  Unsafe member access .message on an `any` value                                     @typescript-eslint/no-unsafe-member-access

✖ 11 problems (11 errors, 0 warnings)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant