Skip to content

Commit 7fa62d7

Browse files
committed
尝试性提供一个.d.ts(仅开坑),修正manager错误
1 parent d86442d commit 7fa62d7

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

manager/InfoCard.d.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/// <reference types="node" />
2+
3+
export class InfoCard {
4+
/**
5+
* 模组和插件通用的信息卡
6+
* @param {{name:string,author:string,description:string,preview:string,filesDir:string}} infos
7+
* @param {boolean} checked
8+
*/
9+
constructor(
10+
infos: {
11+
name: string
12+
author: string
13+
description: string
14+
preview: string
15+
filesDir: string
16+
},
17+
checked?: boolean,
18+
isButton?: boolean
19+
)
20+
}

manager/InfoCard.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
const path = require('path')
12
const infoCardIdMap = {}
23
/**
34
* 信息卡
@@ -155,4 +156,4 @@ class InfoCard {
155156
}
156157
}
157158
}
158-
module.exports = InfoCard
159+
module.exports = InfoCard

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "majsoul-plus-client",
3-
"version": "1.8.11-alpha.2",
3+
"version": "1.8.11-alpha.3",
44
"productName": "Majsoul Plus",
55
"author": "MajsoulPlus Team",
66
"description": "Majsoul Plus",

0 commit comments

Comments
 (0)