Type for `beforeShow` event of `sap.m.NavContainerChild` pseudo interface

Open
#518 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
typescript
Domain
tooling

Research direction

Start by reviewing the TypeScript typings and documentation for the sap.m.NavContainerChild beforeShow event, then compare the interface-event description with the addEventDelegate samples. Investigate how JQuery.Event is currently represented and determine a supported typing approach; done means the event can be typed without relying on an unexplained cast.

Written by the indexing model from the issue text.

Description

Hello and sorry for using this as a support forum.

How does one type the beforeShow sap.m.NavContainerChild event?

In the docs it is described as interface event but all samples show it being used only as a pseudo event using the addEventDelegate API.

Wrt. pseudo events: does a better way to type them out exist? JQuery.Event is not generic and I see only type casting as a way out.

Thanks and regards

Image Image
Dominant language
TypeScript
Stars
213
Forks
35
PR merge metrics
No merged PRs in 30d

Getting set up

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.

More from UI5/typescript

All issues in UI5/typescript

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.