DefinitelyTyped / DefinitelyTyped/DefinitelyTyped

Due to an update on `styled-components` the `seal` function is deprecated and no longer exists

Open
#65,021 0 comments 0 reactions 0 assignees View on GitHub

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.

https://github.com/DefinitelyTyped/DefinitelyTyped/blob/4e2081efcd3b2ddfc351c07391390847669e6b90/types/styled-components/index.d.ts#L387

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.