2.0.0 - This version may not be safe as it has not been updated for a long time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform
Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.
MIT - MIT License根据 v2fly 文档,自动生成 JSON Schema 和 TypeScript typedef
官方文档: json-schemas-and-settings
示例:
在项目中添加 .vscode/settings.json
配置文件,并设置 json.schemas
字段如下:
{
"json.schemas": [
{
"fileMatch": ["/*.json", "/*.jsonc"],
"url": "https://raw.githubusercontent.com/0x-jerry/v2ray-config-json-schema/master/v2fly.schema.json"
}
]
}
安装:pnpm i @0x-jerry/v2ray-schema -D
typescript
:
import type { V2FlyConfig } from '@0x-jerry/v2ray-schema'
const v2raySchema: V2FlyConfig = {
...
}