Skip to content

Commit

Permalink
Merge pull request #10 from warrant-dev/AddContextToWarrant
Browse files Browse the repository at this point in the history
Add context to Warrant type
  • Loading branch information
stanleyphu authored Nov 23, 2022
2 parents 3fcc357 + f06ed27 commit e980bed
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 e980bed

Please sign in to comment.