Skip to content

Commit 5770997

Browse files
fix: (ProfilePolicy.ts) restrictedTo was mistyped (#733)
Co-authored-by: Juiced66 <juiced30@gmail.com>
1 parent 8164953 commit 5770997

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

src/types/ProfilePolicy.ts

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,19 @@ export type ProfilePolicy = {
2424
/**
2525
* Optional array of restrictions on which the rights are gonne be applied
2626
*/
27-
restrictedTo?: {
28-
/**
29-
* Index name.
30-
* Rights will only be applied on this index.
31-
*/
32-
index: string;
27+
restrictedTo?: [
28+
{
29+
/**
30+
* Index name.
31+
* Rights will only be applied on this index.
32+
*/
33+
index: string;
3334

34-
/**
35-
* Collection names.
36-
* Rights will only be applied on those collections.
37-
*/
38-
collections?: Array<string>;
39-
};
35+
/**
36+
* Collection names.
37+
* Rights will only be applied on those collections.
38+
*/
39+
collections?: Array<string>;
40+
}
41+
];
4042
};

0 commit comments

Comments
 (0)