Makes sure type declaration files are generated when building the library.
Defines the types entry point in package.json, so that consumers con discover those type declarations.
Adds a comment in the accessibility Scenario type, recommending returning a VNode when possible and explaining why.
Point 3 was the initial motivation for this PR, but then I realized that would not be available to consumers without publishing type declarations.
Our projects still don't use TS in tests, so the benefits this provides are limited at the moment, but I think it makes sense anyway as that's the direction we want to eventually go.
This PR introduces these changes:
types
entry point in package.json, so that consumers con discover those type declarations.Scenario
type, recommending returning aVNode
when possible and explaining why.Point 3 was the initial motivation for this PR, but then I realized that would not be available to consumers without publishing type declarations.
Our projects still don't use TS in tests, so the benefits this provides are limited at the moment, but I think it makes sense anyway as that's the direction we want to eventually go.