mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Refactor: refine writing strategy
This commit is contained in:
@@ -42,7 +42,11 @@ export class SingboxSource extends BaseWriteStrategy {
|
||||
});
|
||||
}
|
||||
|
||||
constructor(public type: string, protected outputDir = OUTPUT_SINGBOX_DIR) {
|
||||
constructor(
|
||||
/** Since sing-box only have one format that does not reflect type, we need to specify it */
|
||||
public type: 'domainset' | 'non_ip' | 'ip' /* | (string & {}) */,
|
||||
public readonly outputDir = OUTPUT_SINGBOX_DIR
|
||||
) {
|
||||
super(outputDir);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user