Skip to content

Conversation

nstepien
Copy link
Collaborator

@nstepien nstepien commented Jan 13, 2021

@nstepien nstepien requested a review from amanmahajan7 January 13, 2021 14:09
@nstepien nstepien self-assigned this Jan 13, 2021
observe() {},
disconnect() {}
};
import 'core-js/stable';
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TS complains without an import/export, so I added this. It doesn't hurt to have I guess.

test/setup.ts:1:1 - error TS1208: 'setup.ts' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module.

1 window.ResizeObserver ??= class {
  ~~~~~~

@nstepien nstepien marked this pull request as ready for review February 23, 2021 22:42
@@ -1,25 +1,12 @@
import { useRef, useState, useLayoutEffect } from 'react';

// https://github.com/microsoft/TypeScript/issues/37861
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@nstepien nstepien merged commit 1a251ea into canary Feb 24, 2021
@nstepien nstepien deleted the ts42 branch February 24, 2021 12:23
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.

2 participants