From 1cf80f49a000a22f4be3dcd286492dd63282d993 Mon Sep 17 00:00:00 2001 From: Ilya Maroz <37909603+ilyamore88@users.noreply.github.com> Date: Sun, 12 Nov 2023 20:52:43 +0000 Subject: [PATCH] chore(indexation): add docs --- src/utils/EventBus/types/indexation.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/utils/EventBus/types/indexation.ts b/src/utils/EventBus/types/indexation.ts index eacfd1f5..8cdbbf80 100644 --- a/src/utils/EventBus/types/indexation.ts +++ b/src/utils/EventBus/types/indexation.ts @@ -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;