79832797

Date: 2025-11-28 18:02:22
Score: 0.5
Natty:
Report link

I had to do instead:

type StyleSheetProperties = {
    background: string,
};
type StyleSheetPropertyKeys = keyof StyleSheetProperties;

type FrameworkAttributes = {
    [K in `s:${StyleSheetPropertyKeys}`]?: string | number;
};

declare global {
  namespace JSX {
    interface IntrinsicAttributes extends FrameworkAttributes {}
  }
}
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Hydroper