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

Type errors when using exactOptionalPropertyTypes #45106

Closed
alexwork1611 opened this issue Jan 24, 2025 · 0 comments
Closed

Type errors when using exactOptionalPropertyTypes #45106

alexwork1611 opened this issue Jan 24, 2025 · 0 comments
Labels
duplicate This issue or pull request already exists

Comments

@alexwork1611
Copy link

alexwork1611 commented Jan 24, 2025

Steps to reproduce

Steps:

  1. Open this link to live example: https://stackblitz.com/edit/react-material-ui-typescript-xksrbck9?file=components%2FApp.tsx
  2. Look at the Autocomplete in App.tsx and at tsconfig.json
  3. See that the TextField in the renderInput param errors out

Current behavior

Image

Image

Expected behavior

No type error

Context

No response

Your environment

npx @mui/envinfo
System:
    OS: Windows 11 10.0.22631
  Binaries:
    Node: 22.11.0 - C:\nvm4w\nodejs\node.EXE
    npm: 10.9.0 - C:\nvm4w\nodejs\npm.CMD
    pnpm: 9.15.3 - C:\ProgramData\chocolatey\bin\pnpm.EXE
  Browsers:
    Chrome: Not Found
    Edge: Chromium (127.0.2651.98)

Search keywords: exactOptionalPropertyTypes

@alexwork1611 alexwork1611 added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jan 24, 2025
@ZeeshanTamboli ZeeshanTamboli added duplicate This issue or pull request already exists and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants