Skip to content

Commit 61316f7

Browse files
committed
feat:调整FolderNode构造函数的参数类型
1 parent 275816f commit 61316f7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ node_modules
44
.vscode-test/
55
*.vsix
66
package-lock.json
7-
.prettierrc
7+
.prettierrc
8+
yarn.lock

src/model/redis/folderNode.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import RedisBaseNode from "./redisBaseNode";
88
export class FolderNode extends RedisBaseNode {
99
contextValue = ModelType.REDIS_FOLDER;
1010
readonly iconPath = path.join(Constants.RES_PATH, `image/folder.svg`);
11-
constructor(readonly label: string, readonly childens: string[], readonly parent: Node) {
11+
constructor(readonly label: string, readonly childens: string[], readonly parent: RedisBaseNode) {
1212
super(label)
1313
this.init(parent)
1414
this.pattern = label

0 commit comments

Comments
 (0)