Open beamery-tomht opened 2 years ago
microsoft/TypeScript-DOM-lib-generator is the right repository for DOM related type declarations. I haven't found an issue related CSS painting.
Just noting for others that this looks to be a chromium only API, so you'd need to either submit the extension to DefinitelyTyped or persuade other browsers to support the API.
Suggestion
π Search Terms
registerPaint, CSS paint API, types
β Viability Checklist
My suggestion meets these guidelines:
β Suggestion
I'd like to add a type definition for the CSS paint API to the
lib.dom.ts.d
π Motivating Example
An existing example taken from the wild of a custom border radius smoothing implementation using the CSS paint API: https://css-houdini.rocks/smooth-corners/
π» Use Cases