ampproject / ampproject/amphtml

Provide type definitions for AMP and Bento components

Open
#34,206 1 comment 4 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.