Skip to content

Commit 9c7ecaf

Browse files
committed
test(dogfood): catalogPermissionSet answers any, as the findOne it replaces did (#15204 stage 6b-2, T2)
Claude-Session: https://claude.ai/code/session_013XKtmoR5QCUSTMjiQ3os49 Co-authored-by: Claude <noreply@anthropic.com>
1 parent d9ef523 commit 9c7ecaf

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎packages/qa/dogfood/test/catalog-permission-set.ts‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@
1414

1515
import { securityCatalogReaderOf } from '@objectstack/core';
1616

17-
export async function catalogPermissionSet(
18-
ql: unknown,
19-
name: string,
20-
): Promise<Readonly<Record<string, unknown>> | undefined> {
17+
/**
18+
* Typed `any`, as the `ql.findOne` it replaces at every call site was: a fixture
19+
* asserts the definition exists and then reads its fields.
20+
*/
21+
export async function catalogPermissionSet(ql: unknown, name: string): Promise<any> {
2122
const reader = securityCatalogReaderOf(ql);
2223
if (!reader) throw new Error('no security catalog is bound to this engine — is the SecurityPlugin booted?');
2324
return (await reader.resolve('permission', name))?.definition;

0 commit comments

Comments
 (0)