About the type definition issue on StyleDeclarationMap
- Dominant language
- JavaScript
- Stars
- 5.3k
- Forks
- 187
- PR merge metrics
- No merged PRs in 30d
Description
**TypeScript Version:** 3.7.5
**Aphrodite Version:** 2.4.0
When I using StyleSheet create function
```javascript
const style = StyleSheet.create({
container: {
}
})
```
I found out that VS Code is not able to give me any autocomplete suggestion on those CSS properties, since they think StyleDeclarationMap is a type of 'any'

but it is not

I have changed typescript version and modified my tsconfig file, but nothing make it work.
I wonder how can I fixed this issue?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by inspecting the type definitions used by StyleSheet.create, especially StyleDeclarationMap, and reproduce the missing CSS-property autocomplete with TypeScript 3.7.5 and Aphrodite 2.4.0. Done means VS Code offers CSS property suggestions for styles created through StyleSheet.create.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100