UI5 / UI5/typescript

ts-types-esm: Core.getLibraryResourceBundle missing overrides

Open
#343 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

types
Dominant language
TypeScript
Stars
213
Forks
35
Avg merge
37m
Merged PRs (30d)
1

Description

In Core.getLibraryResourceBundle you now define

getLibraryResourceBundle = function(sLibraryName, sLocale, bAsync)

While looking at the code you actually should have three overrides

getLibraryResourceBundle = function(sLibraryName, sLocale, bAsync)
getLibraryResourceBundle = function(sLibraryName, bAsync)
getLibraryResourceBundle = function(bAsync) 

The return Promise is also of type any when it should be Promise

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Core.getLibraryResourceBundle declaration and inspect how its overloads are represented. Add the signatures for the two-argument and single-argument forms and ensure the returned Promise is typed as Promise; done means all three call forms have accurate types.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
developer-experience
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.