A stricter type definition would be:
type DeltaOperation ({ insert: any } | { delete: number } | { retain: number }) & OptionalAttributes;
But this would break a lot of existing code as it would require manual discrimination of the union types.
Generated using TypeDoc
A stricter type definition would be:
type DeltaOperation ({ insert: any } | { delete: number } | { retain: number }) & OptionalAttributes;
But this would break a lot of existing code as it would require manual discrimination of the union types.