Missing Types in @salesforce/lightning-types
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript, node.js, typescript
- Lĩnh vực
- developer-experience, tooling
Hướng nghiên cứu
Start by checking the Salesforce TypeScript guidance linked in the issue and the published @salesforce/lightning-types package to see how platform module declarations are organized. The issue names missing types for lightning/platformShowToastEvent and lightning/navigation, but does not identify the package source repository or its contribution process. Done means both modules resolve with useful type information in an LWC, though maintainers may need to confirm where the package is maintained.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Before You Submit
- I'm using the latest version of Salesforce CLI
- I've searched the existing issues
- I've run
sf doctorto diagnose common issues
Related Issue
No response
Command
nom install @salesforce/lightning-types
Org Type
Not applicable
Did this work before?
No, this is a new bug
Last Working Version
No response
Summary
Please route this to the correct channel.
When trying to use type checking in JS or TS I've found that I can't find types for a few packages available from any of the Salesforce extensions or packages, specifically the expected @salesforce/lightning-types package.
The first few I found:
lightning/platformShowToastEventlightning/navigation
Please help me get these in front of whomever maintains those packages so they can be added. I'm happy to submit initial types that I've added to my own project though they may be incomplete. If there is a better channel to submit these issues please let me know.
Note: It would be amazing if that package were made available as an open-source project so the community could take a more direct hand in contributing and maintaining.
Repository to Reproduce
No response
Steps to reproduce
Following the instructions at
https://developer.salesforce.com/docs/platform/lwc/guide/ts.html#manually-install-the-lightning-types-package
Then use either of the two packages in an LWC. The type information is unable to resolve.
If you'd like clearer errors you can enable type checking for the JS components by adding the Compiler Options "checkJS" = true in your jsconfig.json, this will cause the import to display as unresolvable.
Expected Result
I would like the @salesforce/lightning-types package to provide type information for all of the platform provided packages. Making is so I can provide a better development experience and enforce type safety, improving the quality of the components we build.
Actual Result
The types do not resolve and the type checking throws an error and the IDE is unable to provide completion helps.
Error Message
System Information
{
"architecture": "darwin-arm64",
"cliVersion": "@salesforce/cli/2.157.8",
"nodeVersion": "node-v26.13.0",
"osVersion": "Darwin 27.2.0",
"rootPath": "/Users/heber/.local/share/sf/client/2.157.8-b36e90e",
"shell": "zsh",
"pluginVersions": [
"@oclif/plugin-autocomplete 4.0.6 (core)",
"@oclif/plugin-commands 5.0.6 (core)",
"@oclif/plugin-help 7.0.6 (core)",
"@oclif/plugin-not-found 4.0.7 (core)",
"@oclif/plugin-plugins 7.0.13 (core)",
"@oclif/plugin-search 2.0.9 (core)",
"@oclif/plugin-update 5.0.10 (core)",
"@oclif/plugin-version 3.0.7 (core)",
"@oclif/plugin-warn-if-update-available 4.0.5 (core)",
"@oclif/plugin-which 4.0.6 (core)",
"@salesforce/cli 2.157.8 (core)",
"agent 2.2.3 (core)",
"apex 4.4.4 (core)",
"api 2.0.24 (core)",
"auth 6.0.0 (core)",
"data 5.1.24 (core)",
"deploy-retrieve 4.3.2 (core)",
"info 4.0.22 (core)",
"lightning-dev 6.2.22 (user) published 20 days ago (Thu Oct 15 2026)",
"limits 4.0.6 (core)",
"marketplace 2.0.23 (core)",
"org 7.0.10 (core)",
"packaging 3.0.17 (user) published 9 days ago (Mon Oct 26 2026)",
"schema 4.0.16 (core)",
"settings 3.0.22 (core)",
"signups 3.0.12 (user) published 18 days ago (Sun Oct 18 2026) (latest is 3.0.13)",
"sobject 2.0.20 (core)",
"telemetry 4.2.4 (core)",
"templates 57.5.0 (core)",
"trust 4.0.28 (core)",
"user 6.0.6 (core)",
"sfdx-git-delta 6.45.1 (user) published 132 days ago (Fri Jun 26 2026)"
]
}
Additional Information
No response
Screenshots or Log Files
No response
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 575
- Fork
- 80
- Merge trung bình
- 11 giờ 37 phút
- Pull request đã merge (30 ngày)
- 6
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của forcedotcom/cli
-
area:afdx bug owned by another team
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
forcedotcom/cli#3676 · 3 bình luận ·
-
sf agent mcp asset replace --assets null throws raw TypeError instead of InvalidShapeCó thể đã có người làm @konkonrong-lgtm đã nhận 86 ngày trước. Đang mởarea:afdx bug investigating owned by another team validated
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
forcedotcom/cli#3625 · 4 bình luận ·
-
area:afdx bug owned by another team
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
forcedotcom/cli#3608 · 2 bình luận ·
-
Profile convert to metadata format is O(n²) per tag in `mergeProfiles` (13.8.3+), blocks the event loop for minutes on large profilesCó thể đã có người làm @sfdcmatt đã nhận 1 ngày trước. Đang mởbug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
forcedotcom/cli#3681 · 1 bình luận ·
-
bug validated
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
forcedotcom/cli#3679 · 3 bình luận ·
Tất cả issue của forcedotcom/cli
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
richardcase/skills#29 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Plugin] astrbot_plugin_sd_drawĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
-
Type: Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
yegor256/antlr2ebnf-maven-plugin#155 ·
Maintainer thường phản hồi trong vòng 1 ngày