quill icon indicating copy to clipboard operation
quill copied to clipboard

formatText signature supported but not declared in ts file

Open pshatara90 opened this issue 1 year ago • 1 comments

formatText(index: number, length: number, formats: Record<string, unknown>, source: string) is supported by code, but missing from ts declarations.

Steps for Reproduction

  1. Use quill.formatText in a typed file with signature above, and see that a ts-expect-error is thrown.

Expected behavior: signature should exist

Actual behavior: it doesn't

Platforms:

Include browser, operating system and respective versions

Version: 2.0.0-rc.4

Run Quill.version to find out

pshatara90 avatar Apr 09 '24 15:04 pshatara90

Can you try with 2.0.0-rc.5? Should be fixed

luin avatar Apr 10 '24 06:04 luin