Skip to content

Commit

Permalink
chore: synchronize workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Dec 5, 2024
1 parent 04b2320 commit 4cd3812
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions contrib/namespace-type-lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<infer T> ? T : never
export type SubjectSet<A extends Namespace, R extends keyof A["related"]> =
A["related"][R] extends Array<infer T> ? T : never
}
6 changes: 2 additions & 4 deletions docs/ory_permission_language_spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,8 @@ interface Array<Namespace> {
traverse(iteratorfn: (element: Namespace) => boolean): boolean
}

type SubjectSet<
A extends Namespace,
R extends keyof A["related"],
> = A["related"][R] extends Array<infer T> ? T : never
type SubjectSet<A extends Namespace, R extends keyof A["related"]> =
A["related"][R] extends Array<infer T> ? T : never
```
### Operators
Expand Down

0 comments on commit 4cd3812

Please sign in to comment.