zTree_v3
zTree_v3 copied to clipboard
类型定义
可否有增加 TypeScript 类型定义的计划?
我正在写。好像晚了好多。
我看最新版本并没有类型定义文件index.d.ts, package.json中也没有对应字段,是否更新版本的时候漏掉了?
@UtillYou 都在呀,为何你看不到? https://github.com/zTree/zTree_v3/blob/master/index.d.ts https://github.com/zTree/zTree_v3/blob/master/package.json
github上有,但是npm下载下来就没有
下载下来的package.json 如下
{
"_from": "@ztree/ztree_v3",
"_id": "@ztree/[email protected]",
"_inBundle": false,
"_integrity": "sha512-vfsv9F0VyTuTAy4KqR2jfMOIQqDSFd5/yBT1Sldajhv93SqowI1CGZ1qK7HhOgoy+ag1xoUpNebsuW9ywH5jag==",
"_location": "/@ztree/ztree_v3",
"_phantomChildren": {},
"_requested": {
"type": "tag",
"registry": true,
"raw": "@ztree/ztree_v3",
"name": "@ztree/ztree_v3",
"escapedName": "@ztree%2fztree_v3",
"scope": "@ztree",
"rawSpec": "",
"saveSpec": null,
"fetchSpec": "latest"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/@ztree/ztree_v3/-/ztree_v3-3.5.41.tgz",
"_shasum": "9081fbf2d6dcdb6227af72fb3d121b1a51788f61",
"_spec": "@ztree/ztree_v3",
"_where": "D:\\nodejs\\chord",
"author": {
"name": "zTree",
"url": "https://github.com/zTree"
},
"bugs": {
"url": "https://github.com/zTree/zTree_v3/issues"
},
"bundleDependencies": false,
"dependencies": {
"jquery": ">=1.4.4"
},
"deprecated": false,
"description": "zTree is a multi-functional 'tree plug-ins.' based on jQuery. The main advantages of zTree includes excellent performance, flexible configuration, and the combination of multiple functions.",
"engines": {
"node": ">=0.10.0"
},
"homepage": "http://www.treejs.cn/v3/main.php",
"keywords": [
"tree",
"jquery",
"plug-in",
"plugin",
"ztree",
"html",
"node"
],
"licenses": [
{
"type": "MIT",
"url": "http://www.treejs.cn/v3/main.php#_license"
}
],
"name": "@ztree/ztree_v3",
"repository": {
"type": "git",
"url": "git+https://github.com/zTree/zTree_v3.git"
},
"version": "3.5.41"
}
没有 typings 字段,也没有 index.d.ts
我在你提交的另一个帖子回复了, 等我抽空修改吧,改好后告诉你