TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Quicktype – Beautiful types from JSON

24 点作者 mark-probst超过 7 年前

4 条评论

erydo超过 7 年前
Hey, this is really cool! Cross-language validation of data types is such a pain. This looks really well-done.
chrisparton1991超过 7 年前
This could be useful as a build tool plugin to generate consistent typings for frontend and backend code. Of course, using this as a build-time codegen tool means you can&#x27;t add any custom annotations or methods etc., so it could be a bit restrictive for most use cases.<p>Nice work though!
anthonybullard超过 7 年前
The only problem I see with this is that it doesn&#x27;t have support for optional types. This is nice to be able to distinguish between null&#x2F;empty fields and defaults. But this is very nice work regardless and will be useful in.many people&#x27;s usecases.
评论 #16112477 未加载
pedalpete超过 7 年前
Looks like a lot of work went into this, at first I didn&#x27;t understand where it would be valuable.<p>Then I clicked on the &quot;multiple&quot; tab, and I kinda get it. Throw a bunch of data at it and it will build your types.<p>I&#x27;ve just started using typescript so will give the vscode a go.
评论 #16112480 未加载