From e9c2d11fb2e88d103f9528a2a18db9c0fe954aa8 Mon Sep 17 00:00:00 2001 From: icosahebron Date: Fri, 16 Jun 2017 22:12:41 -0700 Subject: [PATCH] Allow dot notation access of known DeltaOperation properties --- types/quill/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/quill/index.d.ts b/types/quill/index.d.ts index afa72a5290..650408c67c 100644 --- a/types/quill/index.d.ts +++ b/types/quill/index.d.ts @@ -16,7 +16,7 @@ declare namespace Quill { * * But this would break a lot of existing code as it would require manual discrimination of the union types. */ - type DeltaOperation = StringMap & OptionalAttributes; + type DeltaOperation = { insert?: any, delete?: number, retain?: number } & OptionalAttributes; type TextChangeHandler = (delta: DeltaStatic, oldContents: DeltaStatic, source: Sources) => any; type SelectionChangeHandler = (range: RangeStatic, oldRange: RangeStatic, source: Sources) => any;