Skip to content

Commit

Permalink
🏷️ Improve types
Browse files Browse the repository at this point in the history
`defaultLanguage` is deprecated and both `PushOptions` and `PullOptions` have only optional keys so it makes sense to make their respective keys in `Config` optional.
  • Loading branch information
giammyisjammy authored and robrechtme committed Nov 13, 2024
1 parent 1ca000a commit e015e87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
Expand Down

0 comments on commit e015e87

Please sign in to comment.