TypeScript definition for ValueType not found
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 42/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- csharp, typescript
- 領域
- tooling
研究方向
使用 [JSExport] 重現簡單的 C# struct,並檢查產生的 .d.ts 檔案,尤其是 Interface 宣告及其對 ValueType 的參照。檢查 TypeScript 編譯器如何解析產生的 imports,並判斷完成的工作應提供 ValueType 定義,還是記錄一種避免編譯器錯誤的方法。
由索引模型根據 Issue 內容生成。
描述
When generating JavaScript/TypeScript for a very simple C# struct:
[JSExport] public struct Interface { ...
In the .d.ts file following is generated:
import './System.Collections';
import './System.Runtime';
export class Interface extends ValueType {...
ValueType is unknown to the typescript compiler:
Where is the TypeScript definition for ValueType or how can I avoid the TypeScript compiler error? Obviously there is no issue during runtime.
Is this an issue or do I overlook something?
- 主要語言
- C#
- 星號
- 783
- 分支
- 80
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
microsoft/node-api-dotnet 的其他 Issue
-
難度 1/5 1-3 小時 新手友好度 88/100
microsoft/node-api-dotnet#484 ·
-
難度 2/5 1-3 小時 新手友好度 82/100
microsoft/node-api-dotnet#481 ·
-
難度 5/5 一週以上 新手友好度 35/100
microsoft/node-api-dotnet#486 · 1 則留言 ·
-
難度 5/5 一週以上 新手友好度 35/100
microsoft/node-api-dotnet#483 · 1 則留言 · 1 個 reaction ·
-
難度 4/5 3-5 天 新手友好度 45/100
microsoft/node-api-dotnet#479 ·
查看 microsoft/node-api-dotnet 的全部 Issue
相似的 Issue
-
[Simple] NavigationBar primary commands do not render AppBarButton.Content when it is a UIElement未關閉control/navigationbar kind/bug triage/untriaged
難度 2/5 1-3 小時 新手友好度 90/100
unoplatform/uno.toolkit.ui#1652 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 88/100
microsoft/copilot-camp#1053 ·
維護者通常 1 天內回覆
-
bug effort:S P3
難度 2/5 1-3 小時 新手友好度 84/100
nightscout/nocturne#1861 ·
維護者通常 1 天內回覆
-
agentic-workflows area/Docs partner/agentic-workflows
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
microsoft/fluentui-blazor#5364 ·
維護者通常 1 天內回覆