Skip to content

TypeScript definition of EmotionCache has stylis function but no insert function #1990

@RoystonS

Description

@RoystonS

Current behavior:

The TypeScript typings for EmotionCache contain a method (stylis) that isn't actually present, and are missing an important one (insert) that is.

To reproduce:

Flow typings: https://github.com/emotion-js/emotion/blob/next/packages/utils/src/types.js#L22
TypeScript typings: https://github.com/emotion-js/emotion/blob/next/packages/utils/types/index.d.ts#L18

Expected behavior:

The TypeScript typings should match the Flow ones and reality.

Environment information:

  • emotion version: @emotion/utils 1.0.0-next.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions