Skip to content

Commit 2f561bc

Browse files
committed
feat: 🏗️ Live Preview
1 parent c50bb9a commit 2f561bc

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

index.d.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,21 @@ export interface ContentTypeCollection{
6565
count?: number
6666
}
6767

68+
export interface LivePreview {
69+
host: string
70+
authorization: string
71+
enable: boolean
72+
}
73+
74+
export interface LivePreviewQuery {
75+
hash: string
76+
content_type_uid: string
77+
}
78+
6879
// Stack
6980
export class Stack {
7081
constructor(config: Config);
71-
constructor(api_key: string, delivery_token: string, environment_name: string, region?: Region, fetchOptions?: any);
82+
constructor(api_key: string, delivery_token: string, environment_name: string, region?: Region, fetchOptions?: any, live_preview?: LivePreview);
7283

7384
environment: string;
7485
cachePolicy: CachePolicy;
@@ -84,6 +95,7 @@ export class Stack {
8495
setHost(host: string): Stack;
8596
setCachePolicy(policy: CachePolicy): Stack;
8697
setCacheProvider(provider: object): Stack;
98+
setLivePreview(query: LivePreviewQuery): void;
8799
clearByQuery(): Stack;
88100
clearByContentType(): Stack;
89101
clearAll(): Stack;

0 commit comments

Comments
 (0)