http-api: fixing Thread type
-
/**
* An urbit style path, rendered as a Javascript string
* @example
@@ -28,7 +27,6 @@ export type Patp = string;
*/
export type PatpNoSig = string;
-
/**
* The name of a clay mark, as a string
*
@@ -115,7 +113,7 @@ export interface Thread<Action> {
/**
* Desk of thread
*/
- desk: string;
+ desk?: string;
/**
* Data of the input vase
*/
@@ -124,9 +122,6 @@ export interface Thread<Action> {
export type Action = 'poke' | 'subscribe' | 'ack' | 'unsubscribe' | 'delete';
-
-
-
export interface PokeHandlers {
onSuccess?: () => void;
onError?: (e: any) => void;
@@ -182,14 +177,13 @@ export interface headers {
Cookie?: string;
}
-
export interface CustomEventHandler {
(data: any, response: string): void;
}
export interface SSEOptions {
headers?: {
- Cookie?: string
+ Cookie?: string;
};
withCredentials?: boolean;
}
