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

TS does not recognise the "passwordrules" attribute on input #53259

Closed
CraigKuriger opened this issue Mar 14, 2023 · 4 comments
Closed

TS does not recognise the "passwordrules" attribute on input #53259

CraigKuriger opened this issue Mar 14, 2023 · 4 comments
Labels
External Relates to another program, environment, or user action which we cannot control.

Comments

@CraigKuriger
Copy link

🔎 Search Terms

typescript passwordrules

🕗 Version & Regression Information

Version: 4.5.4

💻 Code

<input passwordrules="minlength: 15; required: lower; required: upper; required: digit; required: [-];" />

Error message:

Argument of type '{ passwordrules: string; }' is not assignable to parameter of type 'HTMLProps<"input", HTMLAttributes<any>>'. Object literal may only specify known properties, and '"passwordrules"' does not exist in type 'HTMLProps<"input", HTMLAttributes<any>>'.

🙁 Actual behavior

TS does not recognise the passwordrules attribute

🙂 Expected behavior

TS should recognise the passwordrules attribute

@sahithyandev
Copy link

I think passwordrules is not part of the HTML spec, is it?

@fatcerberus
Copy link

The only thing I could find was this proposal.

@RyanCavanaugh RyanCavanaugh added the External Relates to another program, environment, or user action which we cannot control. label Mar 15, 2023
@RyanCavanaugh
Copy link
Member

This is controlled by whatever JSX .d.ts you're using.

@typescript-bot
Copy link
Collaborator

This issue has been marked as 'External' and has seen no recent activity. It has been automatically closed for house-keeping purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
External Relates to another program, environment, or user action which we cannot control.
Projects
None yet
Development

No branches or pull requests

5 participants