没有合适的资源?快使用搜索试试~ 我知道了~
prop-types-to-ts:Codemod 将 React PropTypes 转换为 TypeScript 类型
共83个文件
js:55个
json:4个
yml:4个
需积分: 18 0 下载量 115 浏览量
2021-08-04
05:30:15
上传
评论
收藏 1.09MB ZIP 举报
温馨提示
PropTypes 到 TS Codemod 将 React PropTypes 转换为 TypeScript 类型。 主要特征 支持函数和类组件 支持类组件上的static propTypes声明 支持具有多个组件的文件 转换为 TS 后删除或保留 PropTypes 的选项 用法 使用与要转换的文件匹配的文件 glob 运行以下命令。 npx jscodeshift -t https://raw.githubusercontent.com/mskelton/prop-types-to-ts/master/transform.ts GLOB # Example npx jscodeshift -t https://raw.githubusercontent.com/mskelton/prop-types-to-ts/master/transform.ts src/ ** / * .{
资源推荐
资源详情
资源评论
收起资源包目录
prop-types-to-ts-master.zip (83个子文件)
prop-types-to-ts-master
.github
workflows
test.yml 876B
format.yml 589B
yarn.lock 430KB
.prettierignore 80B
babel.config.js 62B
__testfixtures__
preserve-none.output.js 287B
preserve-prop-types.input.js 209B
class-component.input.js 242B
memo-export.output.js 151B
custom-validator.output.js 269B
memo-export.input.js 198B
preserve-unconverted-static.output.js 215B
no-export.input.js 159B
multiple-class-components-static.output.js 353B
class-component-static.input.js 245B
preserve-unconverted-shape.input.js 242B
spread-element.input.js 202B
function-component.input.js 209B
custom-validator.input.js 546B
preserve-unconverted-shape.output.js 216B
arrow-function.output.js 143B
spread-element.output.js 182B
complex-props.output.js 2KB
no-prop-types.input.js 84B
class-component.output.js 173B
preserve-none.input.js 347B
arrow-function.input.js 212B
function-and-class.input.js 377B
class-component-static.output.js 173B
no-export.output.js 112B
preserve-unconverted.output.js 491B
preserve-prop-types.output.js 265B
multiple-components.input.js 344B
multiple-class-components-static.input.js 418B
preserve-unconverted-static.input.js 231B
memo.output.js 144B
multiple-components.output.js 287B
function-component.output.js 140B
memo.input.js 191B
complex-props.input.js 2KB
function-and-class.output.js 320B
preserve-unconverted.input.js 386B
no-prop-types.output.js 84B
.yarnrc.yml 345B
web
.eslintrc 39B
webpack.config.js 2KB
src
editor
codemirror.js 268B
codemirror.css 43B
options.js 156B
snippets.js 248B
utils.js 164B
components
Header.svelte 1KB
Editor.svelte 1KB
App.svelte 1KB
index.js 67B
storage.js 283B
screenshot.png 146KB
index.handlebars 404B
package.json 787B
tsconfig.json 98B
LICENSE 744B
jest.config.js 74B
__tests__
transform.spec.js 2KB
.prettierrc 20B
README.md 3KB
transform.ts 8KB
dependabot.yml 108B
.gitignore 168B
.yarn
plugins
@yarnpkg
plugin-interactive-tools.cjs 846KB
plugin-outdated.cjs 43KB
releases
yarn-2.4.2.cjs 1.57MB
.eslintignore 44B
e2e
.eslintrc 92B
env.js 73B
jest-playwright.config.js 93B
utils.js 771B
config
environment.js 578B
test
preserve-prop-types.spec.js 2KB
input-output.spec.js 1KB
jest.config.js 340B
screenshots
.gitkeep 0B
package.json 564B
package.json 1KB
共 83 条
- 1
资源评论
薯条说影
- 粉丝: 33
- 资源: 4689
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功