motiondivision / motion

A modern animation library for React and JavaScript
https://motion.dev
MIT License
25.66k stars 842 forks source link

[BUG] Easing types no longer exported #2872

Closed pleskac closed 1 week ago

pleskac commented 1 week ago

1. Read the FAQs 👇 ✅

2. Describe the bug

Easing types are no longer exported (regression from Motion One -> motion/mini). The output package looks like this:

Screenshot 2024-11-13 at 1 31 23 PM

The type exists in motion/react but I'm restricting imports to not accidentally import anything with react bindings/peerDeps.

3. IMPORTANT: Provide a CodeSandbox reproduction of the bug

[Types bug, sandbox not necessary?]

4. Steps to reproduce

Steps to reproduce the behavior:

  1. Attempt to import { type BezierDefinition } from "motion"

5. Expected behavior

No typechecking errors

6. Video or screenshots

Error: Module '"motion"' has no exported member 'BezierDefinition'. ts(2305)

7. Environment details

motion@11.11.15