tsdjs / tsd

Check TypeScript type definitions
MIT License
2.36k stars 68 forks source link

"Found an error that tsd does not currently support (ts2739), consider creating an issue on GitHub." #215

Closed nvie closed 1 month ago

nvie commented 1 month ago

I hit the following TS issue that TSD does not seem to be able to handle.

  ✖  177:2  Found an error that tsd does not currently support (ts2739), consider creating an issue on GitHub.
  ✖  178:5  Type { children: Element; } is missing the following properties from type { children: ReactNode; foo: Foo | (() => Foo); }: foo

From this input:

expectError(
  <RoomProvider /* missing foo={} */>
    <div />
  </RoomProvider>
);

I'm on the latest version of tsd: 0.31.0.

Thanks for the help in advance!

nvie commented 1 month ago

@sindresorhus I've fixed this in #216. Would you be able to merge this and publish a new version? 🙏