diff --git a/.changeset/wicked-melons-sniff.md b/.changeset/wicked-melons-sniff.md new file mode 100644 index 0000000..42cd24d --- /dev/null +++ b/.changeset/wicked-melons-sniff.md @@ -0,0 +1,6 @@ +--- +"@deroll/core": patch +"@deroll/app": patch +--- + +Moving broadcastAdvanceRequests to AppOptions type diff --git a/packages/app/src/app.ts b/packages/app/src/app.ts index da1836f..fb62e2d 100644 --- a/packages/app/src/app.ts +++ b/packages/app/src/app.ts @@ -2,6 +2,7 @@ import { AdvanceRequestData, AdvanceRequestHandler, App, + AppOptions, InspectRequestHandler, InspectRequestData, Notice, @@ -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 { diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index 8ef75cd..52c8513 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -9,6 +9,10 @@ import { export * from "./types"; export * from "./schema"; +export type AppOptions = { + broadcastAdvanceRequests?: boolean; +}; + export interface App { start(): Promise; createNotice(request: Notice): Promise;