Skip to content

min and max type definition for MeterHTMLAttributes and ProgressHTMLAttributes are missing number #4597

@devlux

Description

@devlux

The type definitions for MeterHTMLAttributes and ProgressHTMLAttributes were missed when fixing the min and max attributes in #4568.

src/components/Progress.tsx:59:48 - error TS2322: Type 'number' is not assignable to type 'Signalish<string | undefined>'.

59         <progress className={classes.progress} max={maxValue}></progress>
                                                  ~~~

  ../node_modules/.pnpm/preact@10.25.1/node_modules/preact/src/jsx.d.ts:1968:3
    1968   max?: Signalish<string | undefined>;
           ~~~
    The expected type comes from property 'max' which is declared here on type 'ProgressHTMLAttributes<HTMLProgressElement>'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions