As noted here, palette is currently typed with DOM types regardless of the runtime platform.
Emission currently type-checks, but as a result, TypeScript would erroneously allow a DOM-only prop to be passed without error.
There was some initial exploration work towards fixing this in https://github.com/javamonn/palette/tree/upgrade-typings, though I'm not sure it's the best way forward - it seems like we might need separate stsconfig`s and separate builds.
As noted here, palette is currently typed with DOM types regardless of the runtime platform.
Emission currently type-checks, but as a result, TypeScript would erroneously allow a DOM-only prop to be passed without error.
There was some initial exploration work towards fixing this in https://github.com/javamonn/palette/tree/upgrade-typings, though I'm not sure it's the best way forward - it seems like we might need separate stsconfig`s and separate builds.