Publish types for custom middleware and task developers
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- typescript
- 领域
- tooling
调研方向
Review the public APIs in the UI5 tooling packages named in the issue, especially @ui5/fs and @ui5/builder, alongside the documented Resource and DuplexCollection APIs. Identify the types needed by custom tasks and middlewares; done means consumers can import maintained TypeScript types instead of defining local declarations.
由索引模型根据 Issue 内容生成。
描述
Is your feature request related to a problem? Please describe.
We as the maintainer of the in SAP Fiori tools and the Open UX tools (https://github.com/SAP/open-ux-tools) develop multiple custom tasks and middlewares. Our development language of choice is typescript, however, there are no types available for the API that is to be implemented by custom tasks and middlewares.
Describe the solution you'd like
It would be great if all the required types are part of the UI5 tooling packages @ui5/fs, @ui5/builder and so on, so that I can import the types in my modules and have all the comforts of using a fully typed language.
Describe alternatives you've considered
The best alternative so far is to read your documentation and manually define the types in a separate .d.ts file e.g.
declare module '@ui5/fs' {
/**
* https://sap.github.io/ui5-tooling/api/module-@ui5_fs.Resource.html
*/
export class Resource {
/**
* Gets the resources path
*/
getPath(): string;
/**
* Gets a buffer with the resource content.
*/
getBuffer(): Promise<Buffer>;
}
/**
* https://sap.github.io/ui5-tooling/api/module-@ui5_fs.DuplexCollection.html
*/
export class DuplexCollection {
/**
*
*/
byGlob(virPattern: string | string[], options?: object): Promise<Resource[]>;
}
}
but that is of course not a good solution since we now need to make sure that our types stay in sync with your development.
Additional context
No.
- 主要语言
- JavaScript
- 星标
- 510
- 派生
- 80
- 平均合并
- 2 天 22 小时
- 30 天内合并 PR
- 12
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
UI5/cli 的其他 Issue
-
Build cache: buildThemes cache is invalidated by irrelevant library.js / .library content changes未关闭module/ui5-builder module/ui5-fs module/ui5-project
难度 3/5 1-2 天 新手友好度 76/100
维护者通常 2 天内回复
-
module/ui5-project
难度 4/5 3-5 天 新手友好度 64/100
维护者通常 2 天内回复
-
[ROADMAP] UI5 CLI 6.0 / Specification Version 6.0可能重新可做 @flovogt 于 116 天前认领,目前没有进行中的 PR。 未关闭roadmap
UI5/cli#1485 · 1 个 reaction · 已指派 1 人 ·
维护者通常 2 天内回复
-
build excludes from application project are not applied to dependencies可能重新可做 @flovogt 于 90 天前认领,目前没有进行中的 PR。 未关闭
UI5/cli#1446 · 3 条评论 · 已指派 1 人 ·
维护者通常 2 天内回复
-
help provided
难度 4/5 3-5 天 新手友好度 35/100
维护者通常 2 天内回复
相似的 Issue
-
bug confirmed issue
难度 1/5 1 小时以内 新手友好度 90/100
open-webui/open-webui#35507 · 2 条评论 ·
维护者通常 1 天内回复
-
beginner-friendly category:tests community enhancement first-timers-only good first issue help wanted low hanging fruit micro-contribution type: task up-for-grabs
难度 1/5 1 小时以内 新手友好度 95/100
Berserk-hub150/skillhawk#300 · 1 条评论 ·
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
Fei2411/DeepSeek-Bot#2896 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
-
area:ui P2 status:blocked
难度 2/5 1-3 小时 新手友好度 70/100
sunososobro-hub/cloudball#1234 ·
维护者通常 1 天内回复