@yagejs-tools/feedback 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,20 @@
1
+ interface FeedbackApplicationOptions {
2
+ directory: string;
3
+ basePath?: string;
4
+ galleryPath?: string;
5
+ project?: string;
6
+ origins?: string[];
7
+ }
8
+
9
+ interface FeedbackServerOptions extends FeedbackApplicationOptions {
10
+ /** Zero lets the OS allocate an available port. */
11
+ port?: number;
12
+ }
13
+ interface FeedbackServer {
14
+ readonly url: string;
15
+ /** Stops HTTP and waits for accepted writes before releasing the directory. */
16
+ close(): Promise<void>;
17
+ }
18
+ declare function startFeedbackServer(options: FeedbackServerOptions): Promise<FeedbackServer>;
19
+
20
+ export { type FeedbackServer, type FeedbackServerOptions, startFeedbackServer };