diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..2a7f460 --- /dev/null +++ b/index.d.ts @@ -0,0 +1,12 @@ +declare module '@reedsy/rich-text' { + export * as Delta from '@reedsy/quill-delta'; + import sharedb from 'sharedb'; + + export type Type = (typeof sharedb)['types']['map'][string]; + + export const config: { + serializedProperties: Record; + }; + + export const type: Type; +} diff --git a/package.json b/package.json index 270fa0e..acb74cb 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,13 @@ { "name": "@reedsy/rich-text", - "version": "4.1.0-reedsy.4.0.0", + "version": "4.1.0-reedsy.4.1.0", "description": "OT type for rich text", "author": "Jason Chen ", "homepage": "https://github.com/ottypes/rich-text", "main": "index.js", "dependencies": { - "@reedsy/quill-delta": "^5.1.0-reedsy.3.0.0" + "@reedsy/quill-delta": "^5.1.0-reedsy.3.0.0", + "@types/sharedb": "^3.3.11" }, "devDependencies": { "chai": "^4.2.0",