fix: fix integrations not loading
This commit is contained in:
parent
d5fb8a2966
commit
1fb084451d
12 changed files with 184 additions and 202 deletions
|
|
@ -1,14 +0,0 @@
|
|||
export abstract class Integration<T> {
|
||||
protected context: NonNullable<T>;
|
||||
constructor(context: T) {
|
||||
if (!context) {
|
||||
throw new Error('Missing integration context');
|
||||
}
|
||||
|
||||
this.context = context;
|
||||
}
|
||||
|
||||
abstract isAvailable(): Promise<boolean> | boolean;
|
||||
abstract onConfigChange(): Promise<void> | void;
|
||||
abstract get name(): string;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue