From e015e87ed6fbc6e697e651cf16756b8efcef4ebf Mon Sep 17 00:00:00 2001 From: Gianmarco <49064602+giammyisjammy@users.noreply.github.com> Date: Thu, 25 Jul 2024 10:31:46 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=B7=EF=B8=8F=20Improve=20types?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `defaultLanguage` is deprecated and both `PushOptions` and `PullOptions` have only optional keys so it makes sense to make their respective keys in `Config` optional. --- types.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types.d.ts b/types.d.ts index 322d407..dac8e6d 100644 --- a/types.d.ts +++ b/types.d.ts @@ -103,7 +103,7 @@ export interface Config { */ localesDir: string; /** @deprecated since v2 all languages are used */ - defaultLanguage: string; + defaultLanguage?: string; /** * Organize translations into namespaces (default: `false`). * Set this flag to `true` when dividing translations into @@ -113,11 +113,11 @@ export interface Config { /** * Options for the `loco-cli push` command. */ - push: PushOptions; + push?: PushOptions; /** * Options for the `loco-cli pull` command. */ - pull: PullOptions; + pull?: PullOptions; } export type Locale = string;