diff --git a/javascripts/src/lib/utils.ts b/javascripts/src/lib/utils.ts index b816618ff..2caf4b7a6 100644 --- a/javascripts/src/lib/utils.ts +++ b/javascripts/src/lib/utils.ts @@ -3,7 +3,7 @@ export function castToNullIfUndef(i:T): T | null{ return i === undefined ? null : i } -export function isBlank(i:null|undefined|string) : boolean { +export function isBlank(i:null|undefined|string) : i is null | undefined | '' { return i === null || i === undefined || i === ''; }