Skip to content

Commit

Permalink
chore(indexation): add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyamore88 committed Nov 12, 2023
1 parent b364907 commit 1cf80f4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/utils/EventBus/types/indexation.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
/**
* Alias for a document id
*/
type DocumentId = string;

/**
* Alias for a block id
*/
type BlockId = string;

/**
* Index for a block node
*/
export type BlockIndex = `${DocumentId}:${BlockId}`;

/**
* Possible index types
*/
export type Index = BlockIndex;

0 comments on commit 1cf80f4

Please sign in to comment.