jorgebucaran/hyperapp

Type declarations don't like custom CSS variables

thequailman opened this issue · 1 comments

When declaring custom CSS variables using hyperapp's Style property, the type declaration marks them invalid (but they compile/work). I don't know what the fix is for this aside from turning style's type definition into [key: string]: string.

Type declaration: https://github.com/jorgebucaran/hyperapp/blob/main/index.d.ts#L155

Example code:

h("main", {
  style: {
    "--color-primary": "something",
  })

Closing, I think this is by design after reading this comment: https://github.com/jorgebucaran/hyperapp/blob/main/index.d.ts#L163.