casesandberg / casesandberg/react-color

typescript: colorResult has no source

Open
#738 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12.3k
Forks
920
PR merge metrics
No merged PRs in 30d

Description

in index.d.ts
![image](https://user-images.githubusercontent.com/47104575/87500432-f669b580-c68e-11ea-94f5-1aaf670aace4.png)
I want to use source,like this

I added this manually,but this is not a solution and I need to modify node_modules,it is a bug?
![image](https://user-images.githubusercontent.com/47104575/87500450-041f3b00-c68f-11ea-9e18-69d518f37edb.png)

Contributor guide

Open the contributing guide

Research direction

Start by inspecting index.d.ts and compare the declared colorResult shape with the source-related API shown in the issue. Done means TypeScript users can access source without manually editing node_modules; verify the updated declaration against the package's type-checking setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.