stockroom icon indicating copy to clipboard operation
stockroom copied to clipboard

Added types.

Open loucyx opened this issue 7 years ago • 2 comments

I'm working a lot with TypeScript+Preact+Stockroom, and I needed types to make my workflow even better. Let's make everyone's worflow better with TS 😄

loucyx avatar Nov 20 '18 23:11 loucyx

This should solve both #22 and #21. To my credit compared to #22, I used JSDocs with the definitions to make them more clear 😄

loucyx avatar Mar 08 '19 18:03 loucyx

I'm all for having the JSDoc in the definitions. Had a bit of a debate when I was putting the types together for #22 and ultimately figured it would add to maintenance time (double handling of function docs).

🤔 I know that the TypeScript compiler is capable of linting regular JS via JSDoc. I wonder if definition files could be generated from that... Something I think I'll look into.

Silic0nS0ldier avatar Jun 29 '19 12:06 Silic0nS0ldier