Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type PlateElementProps is broken #3198

Closed
ZzzZeta opened this issue May 14, 2024 · 0 comments · Fixed by #3199
Closed

Type PlateElementProps is broken #3198

ZzzZeta opened this issue May 14, 2024 · 0 comments · Fixed by #3199
Labels
bug Something isn't working

Comments

@ZzzZeta
Copy link

ZzzZeta commented May 14, 2024

Description

Type PlateElementProps is broken.

Steps to Reproduce

import type { PlateElementProps } from "@udecode/plate-common";

// `T` becomes `any` because type definition of `PlateRenderElementProps` from "@udecode/plate-core/server` is missing.
type T = PlateElementProps;

Sandbox

https://codesandbox.io/p/sandbox/blissful-mcclintock-wtdn3p?file=%2Fsrc%2Findex.ts%3A4%2C24

Expected Behavior

Type PlateElementProps should be working.

Environment

  • slate:
  • slate-react:
  • browser: chrome

Funding

  • You can sponsor this specific effort via a Polar.sh pledge below
  • We receive the pledge once the issue is completed & verified
Fund with Polar
@ZzzZeta ZzzZeta added the bug Something isn't working label May 14, 2024
@zbeyens zbeyens mentioned this issue May 14, 2024
zbeyens added a commit that referenced this issue May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant