Feat: sukka_local_dns_mapping.sgmodule now uses new rule-set syntax

This commit is contained in:
SukkaW
2025-01-17 14:43:35 +08:00
parent 8d5da9776a
commit 6858cd63b4
6 changed files with 119 additions and 52 deletions

View File

@@ -12,7 +12,7 @@ import { isProbablyIpv4, isProbablyIpv6 } from 'foxts/is-probably-ip';
type Preprocessed = [domain: string[], domainSuffix: string[], sortedDomainRules: string[]];
export class RulesetOutput extends RuleOutput<Preprocessed> {
constructor(span: Span, id: string, protected type: 'non_ip' | 'ip') {
constructor(span: Span, id: string, protected type: 'non_ip' | 'ip' | (string & {})) {
super(span, id);
}