Improve: modify type defined

This commit is contained in:
jas0ncn 2018-09-11 00:59:10 +08:00
parent b47b6e0e5b
commit f75eacff86
2 changed files with 3 additions and 5 deletions

View File

@ -76,7 +76,7 @@ export interface SelectProxyGroup {
type?: 'select' type?: 'select'
proxies?: Proxy[] proxies?: string[] // proxy names
} }
@ -84,7 +84,7 @@ export interface UrlTestProxyGroup {
type?: 'url-test' type?: 'url-test'
proxies?: Proxy[] proxies?: string[] // proxy names
url?: string url?: string

View File

@ -1,11 +1,9 @@
import { Proxy } from './Proxy'
export interface Rule { export interface Rule {
type?: 'DOMAIN' | 'DOMAIN-SUFFIX' | 'DOMAIN-KEYWORD' | 'DOMAIN-SUFFIX' | 'GEOIP' | 'FINAL' type?: 'DOMAIN' | 'DOMAIN-SUFFIX' | 'DOMAIN-KEYWORD' | 'DOMAIN-SUFFIX' | 'GEOIP' | 'FINAL'
value?: string value?: string
use?: Proxy use?: string // proxy or proxy group name
} }