typetype-examples
Examples of using typetype to create typescript types (by mistlog)
typetype
A programming language designed for typescript type generation (by mistlog)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
typetype-examples | typetype | |
---|---|---|
3 | 5 | |
30 | 405 | |
- | - | |
0.0 | 0.0 | |
about 3 years ago | almost 2 years ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
typetype-examples
Posts with mentions or reviews of typetype-examples.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-02-26.
-
Create complex type using object spread
The url parser example:
-
The idea of type polyfill
import { Object, List } from "ts-toolbelt" declare global { // add type guard type object$assign = a extends object ? b extends List.List ? Object.Assign : never : never } In this way, we can create even more complex types in intuitive way. You can find the complete example(url-parser) in: typetype: https://github.com/mistlog/typetype-examples/blob/main/examples/url-parser-2/url-parser-2.type generated ts type: https://github.com/mistlog/typetype-examples/blob/main/examples/url-parser-2/url-parser-2.ts
-
typetype: generate complex typescript type easily
Currently, the only benefit is that it's more readable than ts type. For example, the URL parser in https://github.com/mistlog/typetype-examples/blob/main/examples/url-parser/url-parser.type is clear and straightforward.
typetype
Posts with mentions or reviews of typetype.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-02-26.
What are some alternatives?
When comparing typetype-examples and typetype you can also consider the following projects:
json-schema-to-ts - Infer TS types from JSON schemas 📝
TypeGame - 👾 Sokoban Game in Pure TypeScript Type System