framework7io / framework7io/framework7
Typescript event.detail
Open
Nobody has claimed this yet.
Feature Request
- Dominant language
- JavaScript
- Stars
- 18.8k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
- Framework7 version: 3.4.2
- Platform and Target: All
Describe the bug
Typescript typing for event.detail is missing.
To Reproduce
Add some code that uses event.detail
Dom7(document).on("page:init", '.page[data-name="exercise-edit"]', function(
event: Event
) {
let page = event.detail;
Expected behavior
No error.
Actual Behavior
Type error.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating Framework7 and Dom7 TypeScript event typings, then reproduce the issue with the shown page:init handler and event.detail access. Done means the event.detail expression type-checks without an error for this usage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100