dependabot[bot]andDavid Lechner de86d78c03 build(deps): bump @types/react from 18.2.21 to 18.2.37 (#2087)
* build(deps): bump @types/react from 18.2.21 to 18.2.37

Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 18.2.21 to 18.2.37.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

---
updated-dependencies:
- dependency-name: "@types/react"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* yarn: update react-splitter-layout

* fix type errors for react-splitter-layout

Upgrading to `@types/react` > 18.2.21 causes the following errors:

```
src/app/App.tsx:202:22 - error TS2786: 'SplitterLayout' cannot be used as a JSX component.
  Its instance type 'SplitterLayout' is not a valid JSX element.
    The types returned by 'render()' are incompatible between these types.
      Type 'import("/home/david/work/pybricks/pybricks-code/node_modules/@types/react-dom/node_modules/@types/react/ts5.0/index").ReactNode' is not assignable to type 'React.ReactNode'.
        Type 'ReactElement<any, string | JSXElementConstructor<any>>' is not assignable to type 'ReactNode'.
          Property 'children' is missing in type 'ReactElement<any, string | JSXElementConstructor<any>>' but required in type 'ReactPortal'.

202                     <SplitterLayout
                         ~~~~~~~~~~~~~~

  node_modules/@types/react/ts5.0/index.d.ts:175:9
    175         children: ReactNode;
                ~~~~~~~~
    'children' is declared here.

src/app/App.tsx:212:26 - error TS2786: 'SplitterLayout' cannot be used as a JSX component.
  Its instance type 'SplitterLayout' is not a valid JSX element.

212                         <SplitterLayout
                             ~~~~~~~~~~~~~~

Found 2 errors in the same file, starting at: src/app/App.tsx:202
```

https://arethetypeswrong.github.io/?p=react-splitter-layout%404.0.0

provided the hint that we need `export =` instead of `export default`.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: David Lechner <david@pybricks.com>
2023-11-11 20:43:23 +00:00
2023-05-17 16:33:47 -05:00
2022-06-02 19:09:07 -05:00
2023-06-28 14:42:55 -05:00
2022-09-09 11:37:37 -05:00
2023-03-08 15:07:16 -06:00
2022-03-14 15:15:29 -05:00
2022-03-14 15:15:29 -05:00
2022-11-18 19:28:00 -06:00
2023-10-26 22:20:16 +02:00
2023-01-06 15:47:52 -06:00
2022-06-03 10:25:05 -05:00

CI test status codecov

pybricks-code

A Web App for programming LEGO® Powered Up smart hubs using Pybricks MicroPython.

Try it at https://code.pybricks.com or the latest updates https://beta.pybricks.com.

screenshot

Contributing

If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.

For more details, see the file CONTRIBUTING.md.


LEGO® is a trademark of the LEGO Group of companies which does not sponsor, authorize or endorse this project.
S
Description
Web IDE for Pybricks
https://code.pybricks.com/
Readme MIT
52 MiB
Languages
TypeScript 90%
JavaScript 7.6%
SCSS 2.1%
HTML 0.2%
Python 0.1%