-
Notifications
You must be signed in to change notification settings - Fork 35
Remove index.d.ts #7638
Copy link
Copy link
Open
Labels
Pick me upsmall effort, self contained issues to do when you feel like a pick me up, waiting to be unblocked…small effort, self contained issues to do when you feel like a pick me up, waiting to be unblocked…Team Candidate: WebXgood first issue
Milestone
Metadata
Metadata
Assignees
Labels
Pick me upsmall effort, self contained issues to do when you feel like a pick me up, waiting to be unblocked…small effort, self contained issues to do when you feel like a pick me up, waiting to be unblocked…Team Candidate: WebXgood first issue
Type
Fields
Give feedbackNo fields configured for issues without a type.
Why?
Declaration files create ambient types, which appear in a global namespace across the project. We think it's preferable to avoid adding types to a global scope, and instead prefer to import them as needed.
How?
Migrate the types in the
index.d.ts1 file into normal.tsfiles, and import them as needed:Footnotes
https://github.com/guardian/dotcom-rendering/blob/4ea272b55efa01ba88f0f5ff60f6bc9d14198147/dotcom-rendering/index.d.ts ↩