@pisell/pisellos
Version:
一个可扩展的前端模块化SDK框架,支持插件系统
18 lines (17 loc) • 849 B
TypeScript
import { Module, PisellCore, ModuleOptions } from '../../types';
import { BaseModule } from '../BaseModule';
import { Guest, GuestItem, GuestListModuleAPI } from './types';
export declare class GuestListModule extends BaseModule implements Module, GuestListModuleAPI {
protected defaultName: string;
protected defaultVersion: string;
private state;
constructor(name?: string, version?: string);
initialize(core: PisellCore, options?: ModuleOptions): Promise<void>;
addGuest(guest: Guest): Promise<void>;
updateGuest(id: string, updates: Partial<Guest>): Promise<void>;
removeGuest(id: string): Promise<void>;
getGuests(): Promise<Guest[]>;
getGuestCount(): number;
addItemToGuest(guestId: string, item: GuestItem): Promise<void>;
removeItemFromGuest(guestId: string, itemId: string): Promise<void>;
}