CacheControl / CacheControl/json-rules-engine

Add autocomplete for operator

未关闭
#392 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
3.1k
派生
507
PR 合并指标
30 天内没有已合并 PR

描述

To avoid mistakes it would be great to have operator autocomplete in types.

We could either just use a union type and then allow also for any string to account for custom operators, or we could be strict and pair each operator with its corresponding value (e.g. `lessThan` needs a `value: number`, and we could document them so users know how to extend that with their custom types.

If there is interest in this I'd be happy to contribute the PR.

Thanks in advance.

贡献指南

这个仓库没有索引到贡献指南

调研方向

从 issue 提案开始,检查 repository 中现有的类型定义和运算符处理方式。将提议的基于 union 的自动补全与成对的运算符/值类型进行比较,包括应如何扩展自定义运算符。完成的标准是:所选设计提供运算符自动补全,并清晰地记录自定义类型。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript
领域
developer-experience
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。