From 3bfef9181c5d96d7263883a545c9133fb8174da1 Mon Sep 17 00:00:00 2001 From: Ankcorn Date: Wed, 4 Dec 2024 09:50:02 +0000 Subject: [PATCH] Relax type on observability.enabled --- .changeset/unlucky-teachers-call.md | 5 +++++ packages/wrangler/src/config/environment.ts | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/unlucky-teachers-call.md diff --git a/.changeset/unlucky-teachers-call.md b/.changeset/unlucky-teachers-call.md new file mode 100644 index 000000000000..b469a580dfc8 --- /dev/null +++ b/.changeset/unlucky-teachers-call.md @@ -0,0 +1,5 @@ +--- +"wrangler": patch +--- + +Relax type on observability.enabled to remove linting error for nested configurations diff --git a/packages/wrangler/src/config/environment.ts b/packages/wrangler/src/config/environment.ts index a3ac9f58db11..c70cefe3e6f6 100644 --- a/packages/wrangler/src/config/environment.ts +++ b/packages/wrangler/src/config/environment.ts @@ -953,11 +953,11 @@ export type Assets = { export interface Observability { /** If observability is enabled for this Worker */ - enabled: boolean; + enabled?: boolean; /** The sampling rate */ head_sampling_rate?: number; logs?: { - enabled: boolean; + enabled?: boolean; /** The sampling rate */ head_sampling_rate?: number; /** Set to false to disable invocation logs */