CacheControl / CacheControl/json-rules-engine

Add autocomplete for operator

オープン
#392 コメント 4 件 リアクション 0 件 担当者 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 の提案から始め、リポジトリにある既存の型定義と演算子の処理を確認します。提案されている union ベースのオートコンプリートと、演算子/値のペア型を比較し、カスタム演算子をどのように拡張すべきかも含めて検討します。選択した設計で演算子のオートコンプリートが提供され、カスタム型が明確にドキュメント化されていれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
developer-experience
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。