ampproject / ampproject/amphtml
Provide type definitions for AMP and Bento components
Open
Stale
Type: Feature Request
WG: bento
- Dominant language
- JavaScript
- Stars
- 14.9k
- Forks
- 4.1k
- PR merge metrics
- No merged PRs in 30d
Description
This would make live a lot easier for all developers using React + Typescript. Type definitions should include:
* AMP specific attributes defined for standard HTML tags (e.g. `amp-fx-fade-in`).
* AMP tags with their attributes (`
Contributor guide
Research direction
Start with the referenced ampstart/lib/next-amp/build/generateTypes.js and the Next.js AMP TypeScript workaround, then review how AMP validation rules could support generated definitions. Done means covering AMP attributes on standard HTML tags, AMP tags and attributes, and Bento component APIs while remaining compatible with TypeScript and React releases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100