Skip to content

About the type definition issue on StyleDeclarationMapΒ #388

@Shad02w

Description

@Shad02w

TypeScript Version: 3.7.5
Aphrodite Version: 2.4.0
When I using StyleSheet create function

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'

Snipaste_2020-02-05_18-37-10
but it is not
Snipaste_2020-02-05_18-35-36

I have changed typescript version and modified my tsconfig file, but nothing make it work.

I wonder how can I fixed this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions