Skip to content

Commit cc97290

Browse files
authored
chore(sandbox): regenerate bim-globals.d.ts after the clash type changes (#3911)
Main's Node tests job fails on `node scripts/generate-bim-globals.mjs --check`: #3908 added `membersA`/`membersB` (and the `fromMembers*` refs) to the clash types and the generated sandbox surface was not regenerated. This is the generator's output, nothing hand-edited (19 insertions in one file). On the head: the freshness check exits 0, `check:templates` typechecks the built-in scripts against it, package READMEs and generated doc sections pass.
1 parent c8d1b7b commit cc97290

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

apps/viewer/src/lib/scripts/templates/bim-globals.d.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,16 @@ declare namespace BimClash {
187187
a: string;
188188
/** Selector for set B. Omitted ⇒ self-clash within A. */
189189
b?: string;
190+
/**
191+
* Explicit membership for set A — `clashMemberKey(model, ref)` strings. When
192+
* present it REPLACES the `a` selector, so a caller that can resolve a richer
193+
* filter than a type name (properties, attributes, storeys) against the model
194+
* can express it. An empty array means "matched nothing", never "everything".
195+
* See `members.ts`.
196+
*/
197+
membersA?: readonly string[];
198+
/** Explicit membership for set B, replacing the `b` selector. See `membersA`. */
199+
membersB?: readonly string[];
190200
mode: ClashMode;
191201
/** Touching band (m). Defaults to the run-level tolerance. */
192202
tolerance?: number;
@@ -248,6 +258,15 @@ declare namespace BimClash {
248258
rule: string;
249259
matchedA: number;
250260
matchedB: number | null;
261+
/**
262+
* Whether each side was resolved from explicit membership (`membersA` /
263+
* `membersB`) rather than from its type selector. A caller explaining an
264+
* empty side needs it and cannot recover it from `rulesRun`, which
265+
* deliberately drops the resolved member lists. Absent on a result recorded
266+
* before this existed — which is the same thing as "by selector".
267+
*/
268+
fromMembersA?: boolean;
269+
fromMembersB?: boolean;
251270
}
252271

253272
/**

0 commit comments

Comments
 (0)