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

Workaround for error TS2769 #1786

Merged
merged 2 commits into from
Feb 13, 2023
Merged

Workaround for error TS2769 #1786

merged 2 commits into from
Feb 13, 2023

Conversation

szyn
Copy link
Member

@szyn szyn commented Feb 10, 2023

Follow-up #1760.

digdag-ui:checkUi failed due to TS2769.
I added ts-expect-error to disable error as a workaround.

..snip..
console.tsx(2041,34): error TS2769: No overload matches this call.
  Overload 1 of 2, '(data: Data, options: InflateFunctionOptions & { to: "string"; }): string', gave the following error.
    Argument of type 'Data | null' is not assignable to parameter of type 'Data'.
      Type 'null' is not assignable to type 'Data'.
  Overload 2 of 2, '(data: Data, options?: InflateFunctionOptions | undefined): Uint8Array', gave the following error.
    Argument of type 'Data | null' is not assignable to parameter of type 'Data'.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! digdag-ui@1.0.0 type: `tsc --noEmit`
npm ERR! Exit status 2
..snip..

@szyn szyn added this to the v0.10.5 milestone Feb 10, 2023
@szyn szyn merged commit a93b35a into master Feb 13, 2023
@szyn szyn deleted the follow-up-1760 branch February 14, 2023 00:30
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.

None yet

2 participants