Skip to content

Commit

Permalink
Correct documentation for ServerSentEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonRask authored Jul 20, 2024
1 parent 82998d3 commit 081aa29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server_sent_event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const DEFAULT_KEEP_ALIVE_INTERVAL = 30_000;
/** Options which can be set when initializing a {@linkcode ServerSentEvent}. */
export interface ServerSentEventInit extends EventInit {
/** Optional arbitrary data to send to the client, data this is a string will
* be sent unmodified, otherwise `JSON.parse()` will be used to serialize the
* be sent unmodified, otherwise `JSON.stringify` will be used to serialize the
* value. */
data?: unknown;

Expand Down

0 comments on commit 081aa29

Please sign in to comment.