forked from mosaicstack/stack
Co-authored-by: Jason Woltje <[email protected]> Co-committed-by: Jason Woltje <[email protected]>
12 lines
343 B
TypeScript
12 lines
343 B
TypeScript
export interface IChannelPlugin {
|
|
readonly name: string;
|
|
start(): Promise<void>;
|
|
stop(): Promise<void>;
|
|
/** Called when a new project is bootstrapped. Return channelId if a channel was created. */
|
|
onProjectCreated?(project: {
|
|
id: string;
|
|
name: string;
|
|
description?: string;
|
|
}): Promise<{ channelId: string } | null>;
|
|
}
|