DefinitelyTyped / DefinitelyTyped/DefinitelyTyped
Due to an update on `styled-components` the `seal` function is deprecated and no longer exists
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 51.4k
- Forks
- 30.4k
- Avg merge
- 3d 21h
- Merged PRs (30d)
- 108
Description
The reference function is no longer exists at the main package.
This is also the reference for the updated and replaced function. As you can see in this file from the actual package the existing function (seal) has been removed from the StyleSheet object and the instance of the function would give us access to the clearTag API.
Contributor guide
No contributing guide indexed for this repository
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
Inspect types/styled-components/index.d.ts around line 387 and compare it with the referenced upstream Sheet.ts around line 116. Verify how the updated StyleSheet object exposes clearTag and determine the corresponding type definition; done means the declarations match the current styled-components API without retaining the removed seal member.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100