Skip to content

Commit

Permalink
Moving broadcastAdvanceRequests to AppOptions type
Browse files Browse the repository at this point in the history
  • Loading branch information
tuler committed Aug 20, 2024
1 parent 20da387 commit 09c8d46
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/wicked-melons-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@deroll/core": patch
"@deroll/app": patch
---

Moving broadcastAdvanceRequests to AppOptions type
4 changes: 2 additions & 2 deletions packages/app/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {
AdvanceRequestData,
AdvanceRequestHandler,
App,
AppOptions,
InspectRequestHandler,
InspectRequestData,
Notice,
Expand All @@ -13,9 +14,8 @@ import {
} from "@deroll/core";
import createClient from "openapi-fetch";

export type HttpAppOptions = {
export type HttpAppOptions = AppOptions & {
url: string;
broadcastAdvanceRequests?: boolean;
};

export class HttpApp implements App {
Expand Down
4 changes: 4 additions & 0 deletions packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ import {
export * from "./types";
export * from "./schema";

export type AppOptions = {
broadcastAdvanceRequests?: boolean;
};

export interface App {
start(): Promise<void>;
createNotice(request: Notice): Promise<number>;
Expand Down

0 comments on commit 09c8d46

Please sign in to comment.