Skip to content

Commit e8c7447

Browse files
committed
docs(metadata): MetadataUnregisterOptions keeps its own doc comment (R5-A follow-up)
The R5-A commit put MetadataRegisterOptions between the unregister options' doc block and its declaration, so that block documented nothing. The register options now sit above it. Claude-Session: https://claude.ai/code/session_01Utp6CZu9RRx2o8sFUUpEPU Co-authored-by: Claude <noreply@anthropic.com>
1 parent 74a7e4c commit e8c7447

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

‎packages/metadata/src/metadata-manager.ts‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,20 @@ import type { ApiEndpointMatch } from '@objectstack/spec/contracts';
114114
*/
115115
export type WatchCallback = (event: MetadataWatchEvent) => void | Promise<void>;
116116

117+
/**
118+
* [#31699 R5-A; epic ruling 6801410166] {@link MetadataManager.register}'s
119+
* options: the spec's {@link MetadataWriteOptions}, plus `skipSourceLoader`.
120+
* With it, an item {@link MetadataManager.loadMany} read from a loader is not
121+
* persisted back into that same loader; every other loader's write is
122+
* unchanged. The boot priming pass sets it, so a boot never writes back a row
123+
* it read from the store it read it from. Class-level, as
124+
* {@link MetadataUnregisterOptions} is.
125+
*/
126+
export interface MetadataRegisterOptions extends MetadataWriteOptions {
127+
/** Skip the write-through to the loader `loadMany` read this very item from. */
128+
skipSourceLoader?: boolean;
129+
}
130+
117131
/**
118132
* [ADR-0150 D3/D4, #32198] {@link MetadataManager.unregister}'s options: the
119133
* spec's {@link MetadataWriteOptions}, plus the package whose item is removed.
@@ -130,20 +144,6 @@ export type WatchCallback = (event: MetadataWatchEvent) => void | Promise<void>;
130144
* {@link MetadataManager.get} already takes a package beyond the spec's
131145
* signature.
132146
*/
133-
/**
134-
* [#31699 R5-A; epic ruling 6801410166] {@link MetadataManager.register}'s
135-
* options: the spec's {@link MetadataWriteOptions}, plus `skipSourceLoader`.
136-
* With it, an item {@link MetadataManager.loadMany} read from a loader is not
137-
* persisted back into that same loader; every other loader's write is
138-
* unchanged. The boot priming pass sets it, so a boot never writes back a row
139-
* it read from the store it read it from. Class-level, as
140-
* {@link MetadataUnregisterOptions} is.
141-
*/
142-
export interface MetadataRegisterOptions extends MetadataWriteOptions {
143-
/** Skip the write-through to the loader `loadMany` read this very item from. */
144-
skipSourceLoader?: boolean;
145-
}
146-
147147
export interface MetadataUnregisterOptions extends MetadataWriteOptions {
148148
/** The package whose item is removed; see the interface doc. */
149149
packageId?: string;

0 commit comments

Comments
 (0)