emotion icon indicating copy to clipboard operation
emotion copied to clipboard

Types for `@emotion/primitives-core` are missing in Emotion 11

Open efoken opened this issue 5 years ago • 2 comments

Current behavior:

No TypeScript support for @emotion/primitives-core

To reproduce:

  1. Setup CRA with TypeScript
  2. yarn add @emotion/primitives-core
  3. Add import { createCss } from '@emotion/primitives-core'; somewhere
  4. See that createCss has no type

Environment information:

  • react version: 16.13.1
  • emotion version: 11.0.0-next.16

efoken avatar Sep 09 '20 08:09 efoken

Those packages are community-driven from our perspective. We won't be providing any substantial changes to them ourselves - we welcome the community to prepare PRs though and we'll review them, merge and release.

Andarist avatar Sep 09 '20 09:09 Andarist

primitives-core has been converted to TypeScript in the ts-migration branch so it has types now. Though, it may be quite a while before ts-migration is merged.

srmagura avatar Aug 06 '22 20:08 srmagura