From 09c8d469f80568a4efd270544bf6073dd47a958f Mon Sep 17 00:00:00 2001 From: Danilo Tuler Date: Tue, 20 Aug 2024 11:40:12 -0300 Subject: [PATCH] Moving broadcastAdvanceRequests to AppOptions type --- .changeset/wicked-melons-sniff.md | 6 ++++++ packages/app/src/app.ts | 4 ++-- packages/core/src/index.ts | 4 ++++ 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 .changeset/wicked-melons-sniff.md 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;