@ 0x/ typescript- types (简体中文)
0x使用的外部包的类型寄存器. 这就像我们的小版本 绝对是Tyed
安装
yarn add -D @0x/typescript-typings
使用量
在一个 compilerOptions 区域 tsconfig.json
"typeRoots": ["node_modules/@0x/typescript-typings/types", "node_modules/@types"]
这将允许 TS 编译器首先查看回放,然后返回 DT 类型 .
捐款
我们欢迎更广泛的社会作出改进和修正! 要在此包中报告错误, 请在此寄存器中创建一个问题 .
请读我们的 捐款准则 在开始之前.
安装依赖关系
如果您没有启用纱线工作空间( Yarn < v1.0) - 启用它们 :
yarn config set workspaces-experimental true
然后安装依赖关系
yarn install
构建
要构建此软件包和它所依赖的所有其他单列波软件包,请从单列波根目录中运行以下内容:
PKG=@0x/typescript-typings yarn build
或在变化中不断重建:
PKG=@0x/typescript-typings yarn watch
干净
yarn clean
林特
yarn lint