react-strict-dom icon indicating copy to clipboard operation
react-strict-dom copied to clipboard

TypeScript support

Open necolas opened this issue 1 year ago • 2 comments

Describe the feature request

Generate a TypeScript libdef for the npm package

necolas avatar Feb 21 '24 19:02 necolas

I'm overhauling the build setup which will include this.

nmn avatar Feb 22 '24 02:02 nmn

Thanks! In the meantime it is at least possible to get the types for css from styleX:

// types.d.ts
declare module "react-strict-dom" {
  // CSS is a re-export of the module "@stylexjs/stylex";
  export * as css from "@stylexjs/stylex";
}

margalit avatar Feb 24 '24 12:02 margalit

This should be fixed in 0.0.3 which was released after #36 was merged

necolas avatar Mar 13 '24 22:03 necolas