Skip to content

Commit 64a05bb

Browse files
committed
fix(runtime): type the dispatcher's save verdict as the capability verdict it returns
Claude-Session: https://claude.ai/code/session_01UYBdGBzWSrAMzpW8ah3GbP Co-authored-by: Claude <noreply@anthropic.com>
1 parent 110162d commit 64a05bb

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • packages/runtime/src/domains

‎packages/runtime/src/domains/meta.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,10 @@ async function answerMetaList(
510510
}
511511

512512
/** [#20320] This transport's save-door admission of `:type/:name` — see `saveVerdict` in {@link handleMetadataRequest}. */
513-
type MetaSaveVerdict = (canonicalType: string, activeOrganizationId: string | undefined) => { allowed: boolean };
513+
type MetaSaveVerdict = (
514+
canonicalType: string,
515+
activeOrganizationId: string | undefined,
516+
) => ReturnType<typeof metaWriteCapabilityVerdict>;
514517

515518
/**
516519
* [#20320] `GET /meta/:type/:name?state=draft` for a caller who may read

0 commit comments

Comments
 (0)