feat: 添加 Repo 和 User 模块,增强 CNBCore 功能
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import { CNBCore } from "./cnb-core";
|
||||
import { CNBCore, CNBCoreOptions } from "./cnb-core";
|
||||
import { Workspace } from "./workspace";
|
||||
type CNBOptions = CNBCoreOptions<{}>;
|
||||
export class CNB extends CNBCore {
|
||||
workspace: Workspace;
|
||||
constructor(token: string) {
|
||||
super({ token });
|
||||
this.workspace = new Workspace(token);
|
||||
constructor(options: CNBOptions) {
|
||||
super({ token: options.token });
|
||||
this.workspace = new Workspace(options.token);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user