mirror of
https://github.com/woodchen-ink/clash-and-dashboard.git
synced 2025-07-19 06:21:56 +08:00
20 lines
357 B
TypeScript
20 lines
357 B
TypeScript
export interface Rule {
|
|
|
|
type?: RuleType
|
|
|
|
payload?: string
|
|
|
|
proxy?: string // proxy or proxy group name
|
|
|
|
}
|
|
|
|
export enum RuleType {
|
|
'DOMAIN' = 'DOMAIN',
|
|
'DOMAIN-SUFFIX' = 'DOMAIN-SUFFIX',
|
|
'DOMAIN-KEYWORD' = 'DOMAIN-KEYWORD',
|
|
'GEOIP' = 'GEOIP',
|
|
'FINAL' = 'FINAL',
|
|
'IP-CIDR' = 'IP-CIDR',
|
|
'USER-AGENT' = 'USER-AGENT'
|
|
}
|