Skip to content

Commit

Permalink
Export symbols directly from sse.ts (avoids issues in downstream sync)
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwillchen committed Feb 9, 2024
1 parent cd1727a commit ebff4f7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions mesop/web/src/utils/sse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,11 @@
limitations under the License.
*/

interface SSEHeaders {
export interface SSEHeaders {
[key: string]: string;
}

interface SSEOptions {
export interface SSEOptions {
headers?: SSEHeaders;
payload?: string;
method?: string;
Expand All @@ -222,7 +222,7 @@ interface SSEOptions {

type EventListener = (event: CustomEvent) => void;

class SSE {
export class SSE {
private static readonly INITIALIZING = -1;
private static readonly CONNECTING = 0;
private static readonly OPEN = 1;
Expand Down Expand Up @@ -462,5 +462,3 @@ class SSE {
this._setReadyState(SSE.CLOSED);
}
}

export {SSE, SSEOptions, SSEHeaders};

0 comments on commit ebff4f7

Please sign in to comment.