CacheControl / CacheControl/json-rules-engine

Rule Ts incorrect

未關閉
#253 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
3.1k
分支
507
PR 合併指標
30 天內沒有已合併 PR

描述

The `rule.js` recently refactored the `rule.event` property to `rule.ruleEvent` (80e84b3ada7df7fca20aba21e37d8b5ee4257023) but there were no corresponding updates to the types when using the types accessing the property directly does not work as expected.

Should the type use `rule.ruleEvent` or should it use accessors for the event?

js & ts are not my speciality but i think the 'event' property of the interface needs to have a `get function` & `set function` that are actually the `getEvent` and `setEvent` functions.

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

首先檢查 rule.js 以及公開 rule.event 屬性的型別定義。將重構後的 rule.ruleEvent 屬性與 issue 中提到的 getEvent 和 setEvent 存取子進行比較,然後驗證哪種形式允許透過型別直接存取屬性。當型別與執行階段行為一致,且直接存取能如預期運作時,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
javascript, typescript
領域
backend
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。