Skip to content

Commit

Permalink
Add context to Warrant type
Browse files Browse the repository at this point in the history
  • Loading branch information
stanleyphu committed Nov 23, 2022
1 parent 3fcc357 commit f06ed27
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/types/Context.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default interface Context {
[key: string]: string;
}
3 changes: 3 additions & 0 deletions src/types/Warrant.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import Context from "./Context";

export default interface Warrant {
objectType: string;
objectId: string;
relation: string;
context?: Context;
}
1 change: 1 addition & 0 deletions src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { default as Context } from "./Context";
export { default as Warrant } from "./Warrant";
export { default as WarrantCheck, WarrantCheckOp } from "./WarrantCheck";

0 comments on commit f06ed27

Please sign in to comment.