Skip to content

Using a dynamic index #48

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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions