Skip to content

Commit e70caaa

Browse files
BUG: Missing TS definitions for csp and issue with variables TS signature
1 parent 4475d07 commit e70caaa

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
default: patch
3+
---
4+
5+
# BUG: Missing TS definitions for csp and issue with variables TS signature

src/types/application-manifest.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@ export type ApplicationManifest = {
66
hash: string;
77
resource: string;
88
operations: ManifestOperation[];
9+
csp: ManifestCsp;
910
};
1011

1112
export type ManifestOperation = {
1213
id: string;
1314
name: string;
1415
type: "query" | "mutation";
1516
body: string;
16-
variables: Record<string, string>;
17+
variables?: Record<string, string | undefined>;
1718
prefetch: boolean;
1819
prefetchID?: string;
1920
tools: ManifestTool[];
@@ -30,3 +31,8 @@ export type ManifestExtraInput = {
3031
description: string;
3132
type: "string" | "boolean" | "number";
3233
};
34+
35+
export type ManifestCsp = {
36+
connectDomains: string[];
37+
resourceDomains: string[];
38+
};

0 commit comments

Comments
 (0)