Hanxing Yang
Hanxing Yang
Thx for your feedback @mattleonowicz It seems that in your sample code, validating will be automatically triggered both when blur and when change — something like validate-on-(change|blur)? I thought if...
Related discussion: https://github.com/qbox/horn/pull/340#discussion_r699824181
Some ideas: #### 1. Auto type inference by validators ```ts const state = new FieldState('').validators(notNull) // safeValue: string ``` It's hard, maybe impossible #### 2. Generic type passing with validator...
> One thing to consider: should this value be defined and available even when validators return errors? Accessing safe-value will throw if currently validation not passed. ```ts @computed get safeValue()...
We use MobX a lot in our project and have created a similar tool to do store snapshot and resume. Recently we are considering migrating to serializr. So I'm willing...
Golang team uses domain `go.dev` for its official site, so it's natural to use `pkg.go.dev` for its package document site. Goplus team uses domain `goplus.org` for its official site (and...
consider `optimization.extractStyle`
简单尝试了下,目前主要的障碍在: 1. 依赖 `__dirname` / `__filename` 的代码(如读取 preset config 的逻辑)会行为不正确(代码被 bundle 了) 可以考虑通过获取 package (builder) root,然后往 package root 后边拼路径的方式来定位目标资源(如 preset config) 获取 package root 可以通过从当前文件路径向上找,直到找到最近的、包含 `package.json` 文件的路径来实现;不过需要注意,ncc 构建出的 `dist/` 目录中也是有...
关于 > 社区基本已经达成一致:Library 自己只需要提供合乎最新(ECMAScript)规范的代码,由具体项目(或者叫应用开发者 application developer)去做 transpile 到 target browsers(或者其他 runtime)的事情 补充 * https://open-wc.org/guides/developing-components/publishing/#do-publish-latest-standard-ecmascript
@doxiaodong 要是能直接 publish ts 代码更爽,swc 作者最近在用 go 重写 tsc 了.. https://kdy1.dev/posts/2022/1/tsc-go