Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Jan 9, 2025
1 parent 69d64f8 commit a876450
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions code/lib/create-storybook/src/ink/Demo.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ const meta = {
};
stdout.setEncoding = () => {};
stdout.setRawMode = () => {};
// @ts-expect-error (TODO)
stdout.ref = () => {};
// @ts-expect-error (TODO)
stdout.unref = () => {};
stdout.resume = () => {};
stdout.pause = () => {};
Expand Down
1 change: 0 additions & 1 deletion code/renderers/react/src/act-compat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ declare const globalThis: {
const clonedReact = { ...React };

const reactAct =
// @ts-expect-error act might not be available in some versions of React
typeof clonedReact.act === 'function' ? clonedReact.act : DeprecatedReactTestUtils.act;

export function setReactActEnvironment(isReactActEnvironment: boolean) {
Expand Down

0 comments on commit a876450

Please sign in to comment.