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

Feature request: Delta interface #63

Closed
dsebastien opened this issue May 1, 2021 · 4 comments
Closed

Feature request: Delta interface #63

dsebastien opened this issue May 1, 2021 · 4 comments

Comments

@dsebastien
Copy link

It would be nice to have a Delta interface in addition to the class. That way, we could describe existing serialized data accurately, without having to create class instances.

As far as I understand this; such an interface could be as simple as:

interface QuillDelta {
 ops: Op[];
}

Does this exist somewhere already?

@rockwotj
Copy link

rockwotj commented May 28, 2021

The @types/quill package has a DeltaStatic IIRC

@reed-lawrence
Copy link

I believe it only has a DeltaOperations static. I'm having difficulty utilizing Delta in typescript models without casting.

@Maximaximum
Copy link

This would be extremely useful!

@jhchen
Copy link
Member

jhchen commented Sep 17, 2021

This is too small of an interface (we even just inline in delta.ts) to be helpful enough to support and maintain.

@jhchen jhchen closed this as completed Sep 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants