diff --git a/src/types/Context.ts b/src/types/Context.ts new file mode 100644 index 0000000..00e6ebc --- /dev/null +++ b/src/types/Context.ts @@ -0,0 +1,3 @@ +export default interface Context { + [key: string]: string; +} diff --git a/src/types/Warrant.ts b/src/types/Warrant.ts index 0cce8d3..38494d0 100644 --- a/src/types/Warrant.ts +++ b/src/types/Warrant.ts @@ -1,5 +1,8 @@ +import Context from "./Context"; + export default interface Warrant { objectType: string; objectId: string; relation: string; + context?: Context; } diff --git a/src/types/index.ts b/src/types/index.ts index f82d182..e6f7dbb 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -1,2 +1,3 @@ +export { default as Context } from "./Context"; export { default as Warrant } from "./Warrant"; export { default as WarrantCheck, WarrantCheckOp } from "./WarrantCheck";