From 4cd38128b6c2c2237415a23a566148bb9d808e76 Mon Sep 17 00:00:00 2001 From: aeneasr <3372410+aeneasr@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:05:41 +0100 Subject: [PATCH] chore: synchronize workspaces --- contrib/namespace-type-lib/index.d.ts | 6 ++---- docs/ory_permission_language_spec.md | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/contrib/namespace-type-lib/index.d.ts b/contrib/namespace-type-lib/index.d.ts index bb159ee35..ad5c717cb 100644 --- a/contrib/namespace-type-lib/index.d.ts +++ b/contrib/namespace-type-lib/index.d.ts @@ -71,8 +71,6 @@ declare module "@ory/keto-namespace-types" { export type Namespace = namespace - export type SubjectSet< - A extends Namespace, - R extends keyof A["related"], - > = A["related"][R] extends Array ? T : never + export type SubjectSet = + A["related"][R] extends Array ? T : never } diff --git a/docs/ory_permission_language_spec.md b/docs/ory_permission_language_spec.md index 99e732a57..c87873887 100644 --- a/docs/ory_permission_language_spec.md +++ b/docs/ory_permission_language_spec.md @@ -128,10 +128,8 @@ interface Array { traverse(iteratorfn: (element: Namespace) => boolean): boolean } -type SubjectSet< - A extends Namespace, - R extends keyof A["related"], -> = A["related"][R] extends Array ? T : never +type SubjectSet = + A["related"][R] extends Array ? T : never ``` ### Operators