Skip to content

Commit e015e87

Browse files
giammyisjammyrobrechtme
authored andcommitted
🏷️ Improve types
`defaultLanguage` is deprecated and both `PushOptions` and `PullOptions` have only optional keys so it makes sense to make their respective keys in `Config` optional.
1 parent 1ca000a commit e015e87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

types.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export interface Config {
103103
*/
104104
localesDir: string;
105105
/** @deprecated since v2 all languages are used */
106-
defaultLanguage: string;
106+
defaultLanguage?: string;
107107
/**
108108
* Organize translations into namespaces (default: `false`).
109109
* Set this flag to `true` when dividing translations into
@@ -113,11 +113,11 @@ export interface Config {
113113
/**
114114
* Options for the `loco-cli push` command.
115115
*/
116-
push: PushOptions;
116+
push?: PushOptions;
117117
/**
118118
* Options for the `loco-cli pull` command.
119119
*/
120-
pull: PullOptions;
120+
pull?: PullOptions;
121121
}
122122

123123
export type Locale = string;

0 commit comments

Comments
 (0)