mirror of
https://github.com/SukkaW/Surge.git
synced 2026-02-02 03:51:53 +08:00
Refactor: adjust more output
This commit is contained in:
@@ -218,8 +218,12 @@ export abstract class RuleOutput {
|
||||
abstract clash(): string[];
|
||||
abstract singbox(): string[];
|
||||
|
||||
done() {
|
||||
return this.pendingPromise;
|
||||
}
|
||||
|
||||
async write(): Promise<void> {
|
||||
await this.pendingPromise;
|
||||
await this.done();
|
||||
|
||||
invariant(this.title, 'Missing title');
|
||||
invariant(this.description, 'Missing description');
|
||||
|
||||
Reference in New Issue
Block a user