lumeland / lume

🔥 Static site generator for Deno 🦕
https://lume.land
MIT License
1.75k stars 74 forks source link

inline plugin types for JSX #619

Closed oscarotero closed 3 weeks ago

oscarotero commented 3 weeks ago

Version

any

Platform

any

What steps will reproduce the bug?

enable jsx_preact and inline. The preact types doesn't include the inline attribute types so it shows a warning in vscode.

How often does it reproduce? Is there a required condition?

always

What is the expected behavior?

do not fail

What do you see instead?

imaxe

Additional information

A solution:

// types.d.ts
declare global {
  namespace preact.JSX {
    interface HTMLAttributes {
      inline?: boolean | undefined;
    }
  }
}