Gabe
Gabe
Hello! We're using this library to integrate tracking into our React front-end, but we use TypeScript and trying to type the `track` function is a nightmare. The type definitions ([`@types/react-tracking`](https://www.npmjs.com/package/@types/react-tracking))...
Q: is there a tool that transforms `.d.ts` into `.js.flow`?
ala https://clojure.org/about/spec, https://clojure.org/guides/spec
```ts import { string, integer } from 'kitimat-jest'; const fuzz = string().or(integer()); ```
Like [this talk](https://confengine.com/selenium-conf-2016/proposal/2547/generating-and-running-1000000-selenium-tests-in-60-minutes) but probably using [Chromeless](https://github.com/graphcool/chromeless). For more information, see https://en.wikipedia.org/wiki/Model-based_testing.
TS exposes [custom transformers](https://github.com/Microsoft/TypeScript/issues/13764) through the public API, so it should be possible to create generates purely from a type alias. I've done something like before with [babel as Flow](https://github.com/unbounce/babel-plugin-transform-flow-to-gen)....
Make it possible to use React propTypes to generate props for your component. ```ts import { fromPropTypes } from 'kitimat-prop-types'; jest.mock('prop-types', () => require('kitimat-prop-types/mock')); import { App } from './app';...
Inspired by `mockServer` in [GraphQL tools](https://github.com/apollographql/graphql-tools), create GraphQL bindings for Kitimat. Given a `schema.json` and a query, I should create a generator. ```ts import { fromGraphQL } from 'kitimat-graphql'; improt...
This function would be the "snapshot testing" of property-based tests - don't want to use much effort and just have something that does a general sanity check that the function...