Skip to content

Commit

Permalink
Merge pull request #18 from reedsy/type-definitions
Browse files Browse the repository at this point in the history
🏷️ Add type definitions
  • Loading branch information
alecgibson authored Jul 17, 2024
2 parents a388259 + 66e32f2 commit afe4ef7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
12 changes: 12 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -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<string, boolean>;
};

export const type: Type;
}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
"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",
Expand Down

0 comments on commit afe4ef7

Please sign in to comment.