Skip to content

Commit

Permalink
fix: (ProfilePolicy.ts) restrictedTo was mistyped (#733)
Browse files Browse the repository at this point in the history
Co-authored-by: Juiced66 <[email protected]>
  • Loading branch information
Juiced66 and Jamesetco66 authored Nov 30, 2023
1 parent 8164953 commit 5770997
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions src/types/ProfilePolicy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,19 @@ export type ProfilePolicy = {
/**
* Optional array of restrictions on which the rights are gonne be applied
*/
restrictedTo?: {
/**
* Index name.
* Rights will only be applied on this index.
*/
index: string;
restrictedTo?: [
{
/**
* Index name.
* Rights will only be applied on this index.
*/
index: string;

/**
* Collection names.
* Rights will only be applied on those collections.
*/
collections?: Array<string>;
};
/**
* Collection names.
* Rights will only be applied on those collections.
*/
collections?: Array<string>;
}
];
};

0 comments on commit 5770997

Please sign in to comment.