Fix types

This commit is contained in:
Adria Navarro 2023-07-05 16:43:23 +02:00
parent 2411b59709
commit b0f2306c50
1 changed files with 3 additions and 3 deletions

View File

@ -48,8 +48,8 @@ function httpLogging() {
} }
function getPackageJsonFields(): { function getPackageJsonFields(): {
VERSION: string | undefined VERSION: string
SERVICE_NAME: string | undefined SERVICE_NAME: string
} { } {
function findFileInAncestors( function findFileInAncestors(
fileName: string, fileName: string,
@ -79,7 +79,7 @@ function getPackageJsonFields(): {
} }
} catch { } catch {
// throwing an error here is confusing/causes backend-core to be hard to import // throwing an error here is confusing/causes backend-core to be hard to import
return { VERSION: undefined, SERVICE_NAME: undefined } return { VERSION: "", SERVICE_NAME: "" }
} }
} }