From fd4f70f62baf9687b323a774a413568556eb7f7c Mon Sep 17 00:00:00 2001 From: pedr Date: Wed, 29 Nov 2023 12:31:49 -0300 Subject: [PATCH] Chore: Add enums for ApplicationPlatform and ApplicationType (#9410) --- .eslintignore | 1 + .gitignore | 1 + packages/lib/types.ts | 14 ++++++++++++++ 3 files changed, 16 insertions(+) create mode 100644 packages/lib/types.ts diff --git a/.eslintignore b/.eslintignore index b73dcce14..44b55e13f 100644 --- a/.eslintignore +++ b/.eslintignore @@ -925,6 +925,7 @@ packages/lib/themes/solarizedDark.js packages/lib/themes/solarizedLight.js packages/lib/themes/type.js packages/lib/time.js +packages/lib/types.js packages/lib/utils/credentialFiles.js packages/lib/utils/joplinCloud.js packages/lib/utils/processStartFlags.js diff --git a/.gitignore b/.gitignore index b61c9fb41..531d3196b 100644 --- a/.gitignore +++ b/.gitignore @@ -907,6 +907,7 @@ packages/lib/themes/solarizedDark.js packages/lib/themes/solarizedLight.js packages/lib/themes/type.js packages/lib/time.js +packages/lib/types.js packages/lib/utils/credentialFiles.js packages/lib/utils/joplinCloud.js packages/lib/utils/processStartFlags.js diff --git a/packages/lib/types.ts b/packages/lib/types.ts new file mode 100644 index 000000000..38ac4de58 --- /dev/null +++ b/packages/lib/types.ts @@ -0,0 +1,14 @@ +export enum ApplicationPlatform { + Unknown = 0, + Windows = 1, + Linux = 2, + MacOs = 3, + Android = 4, +} + +export enum ApplicationType { + Unknown = 0, + Desktop = 1, + Mobile = 2, + Cli = 3, +}