[base-controller] Make `name` a static property

未關閉
#7,632 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

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

研究方向

首先,在 monorepo 中定位 BaseController 的實作以及對其 name 屬性的參照。檢查 controller 的建構方式,以及 client repository 如何取得它們的名稱。完成的標準是:name 在建構 controller 之前即可靜態使用,且受影響的測試和使用情境都通過。

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

描述

team-core-platform

The BaseController API has name as an instance property. This is always set statically, so we could make it a static property instead.

This would make it easier to generate a complete list of controller names in the client repositories. Currently we need to wait until after the controllers are constructed before getting a list of the name properties, which is an inconvenient restriction.

主要語言
TypeScript
星號
424
分支
311
平均合併
1 天 8 小時
30 天內合併 PR
446

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 有 Pull Request 範本
  • 沒有貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

MetaMask/core 的其他 Issue

查看 MetaMask/core 的全部 Issue

相似的 Issue

更多 TypeScript Issue

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

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