From 2139abc3dde2b0d9d4642dfd27fa3ff5107ccb99 Mon Sep 17 00:00:00 2001 From: vorotamoroz Date: Fri, 14 Aug 2026 06:58:08 +0000 Subject: [PATCH] Add Community Review type-resolution probes --- .../ReviewHarness/communityReviewTypeProbe.ts | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/features/ReviewHarness/communityReviewTypeProbe.ts diff --git a/src/features/ReviewHarness/communityReviewTypeProbe.ts b/src/features/ReviewHarness/communityReviewTypeProbe.ts new file mode 100644 index 00000000..04634e2e --- /dev/null +++ b/src/features/ReviewHarness/communityReviewTypeProbe.ts @@ -0,0 +1,27 @@ +import type { FilePath } from "@vrtmrz/livesync-commonlib/compat/common/types"; +import type { ObsidianLiveSyncSettings } from "@vrtmrz/livesync-commonlib/compat/common/models/setting.type"; +import type { FSWatcher } from "chokidar"; +import type { IDBPDatabase } from "idb"; +import type { TFile } from "obsidian"; +import type { TaggedType } from "octagonal-wheels/common/types"; +import type { SimpleStore } from "octagonal-wheels/databases/SimpleStoreBase"; + +declare const localTypeTag: unique symbol; + +type LocalObject = { + readonly value: string; +}; + +type LocalTaggedType = string & { + readonly [localTypeTag]: "LocalTaggedType"; +}; + +export type LocalObjectUnionProbe = LocalObject | undefined; +export type LocalTaggedUnionProbe = LocalTaggedType | undefined; +export type OctagonalWheelsTaggedUnionProbe = TaggedType | undefined; +export type CommonlibFilePathUnionProbe = FilePath | undefined; +export type CommonlibSettingsUnionProbe = ObsidianLiveSyncSettings | undefined; +export type OctagonalWheelsStoreUnionProbe = SimpleStore | undefined; +export type IndexedDBUnionProbe = IDBPDatabase | undefined; +export type ObsidianFileUnionProbe = TFile | undefined; +export type ChokidarWatcherUnionProbe = FSWatcher | undefined;