@cratis/event-models 0.276.0 → 0.277.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,13 @@
1
+ import type { Guid } from '@cratis/fundamentals';
2
+ /**
3
+ * The key an item of a specification looks up its event under.
4
+ *
5
+ * A given or expected event whose event has gone — deleted, or never bound after an import — has no event
6
+ * identifier. Reading it as one threw while the board drew, and a board that cannot draw its specifications
7
+ * is worse than one that shows the item under the name it was saved with.
8
+ * @param item The specification item that refers to an event.
9
+ * @returns The identifier of the event as text, or an empty key when the item refers to none.
10
+ */
11
+ export declare const eventKeyOf: (item: {
12
+ eventId?: Guid | null;
13
+ }) => string;
@@ -15,6 +15,7 @@ export * from './SpecificationDetails';
15
15
  export * from './WhenSection';
16
16
  export * from './ThenSection';
17
17
  export * from './allowedThenKinds';
18
+ export * from './eventKeyOf';
18
19
  export * from './SpecificationAddGroup';
19
20
  export * from './specificationValuesMemory';
20
21
  export * from './whenEventEditing';