Skip to content

Using a dynamic indexΒ #48

@cosapostolobump

Description

@cosapostolobump

Is it possible to do something like this?

import styles from './styles.module.scss'

styles['somedynamicindex']

Getting this error

Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'IIconModuleScss'.
  No index signature with a parameter of type 'string' was found on type 'IIconModuleScss'.

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