typed-html icon indicating copy to clipboard operation
typed-html copied to clipboard

Some attributes should accept boolean values

Open ratorx opened this issue 5 years ago • 2 comments

Some attributes are incorrectly marked as taking a string, whereas they should take boolean values.

As a concrete example, HtmlScriptTag.defer should take a boolean argument, rather than a string argument.

ratorx avatar Sep 06 '20 13:09 ratorx

Can you compile a list? Is there a definitive source for these? Would it be possible to consume the correct types from some another type definition for the DOM?

bebraw avatar Sep 08 '20 09:09 bebraw

Typescript has a list of generated DOM types as well as the source code for the generator available.

This seems like a good source of definitive APIs for this project. Perhaps a wrapper to the generator could be used to generate the specific type definitions needed by this project?

ratorx avatar Sep 08 '20 16:09 ratorx