Cong-Cong Pan
Results
7
comments of
Cong-Cong Pan
个人角度,type alias 语法上更像代数数据类型,或许会受到喜欢函数式编程的程序员青睐。例如 type student = [string, number]; 可以看做元组,type student = {name: string, old: number} 可以看做命名元组。 a & b 可以看做 a 和 b 类型的积(product), a | b 可以看做 a 和...
You are right, with generic is better.
@xiao252 目前内部没有实现 TabBar 相关的 API,需要开发,有兴趣 PR 么?
[@swc/plugin-transform-imports](https://www.npmjs.com/package/@swc/plugin-transform-imports) 可以代替 taro-import-plugin
参照 [next_ssg](https://github.com/vercel/next.js/blob/canary/packages/next-swc/crates/core/src/next_ssg.rs) 编写 taro-ssg-plugin。