Skip to content

Commit

Permalink
chore(schema): add a ts definition
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Aug 21, 2023
1 parent e3ab845 commit cdd2099
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/schema/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./lavamoat-policy.v0-0-1.schema";
10 changes: 10 additions & 0 deletions packages/core/schema/lavamoat-policy.v0-0-1.schema.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export interface LavaMoatPolicy {
resources: Record<"<root>" | string, ResourcePolicy>;
resolutions?: Record<string, string>;
}

export interface ResourcePolicy {
globals?: Record<string, boolean>;
builtins?: Record<string, boolean>;
packages?: Record<string, boolean>;
}

0 comments on commit cdd2099

Please sign in to comment.