From da3afe553537ed18d5e5cb0df32b00f70052223f Mon Sep 17 00:00:00 2001 From: Olmo del Corral Date: Sun, 17 May 2020 20:58:54 +0200 Subject: [PATCH] update to Typescript 3.9 --- Signum.React/Scripts/QuickLinks.tsx | 2 +- Signum.React/Scripts/ValueLineModal.tsx | 2 +- Signum.React/Signum.React.csproj | 6 +++--- Signum.Test/Signum.Test.csproj | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Signum.React/Scripts/QuickLinks.tsx b/Signum.React/Scripts/QuickLinks.tsx index 4bd20d52fb..bfb16bdd90 100644 --- a/Signum.React/Scripts/QuickLinks.tsx +++ b/Signum.React/Scripts/QuickLinks.tsx @@ -99,7 +99,7 @@ function asPromiseArray(value: Seq | Promise>): Promise { if (!value) return Promise.resolve([] as T[]); - if ((value as Promise>).then) + if ((value as Promise>).then != undefined) return (value as Promise>).then(a => asArray(a)); return Promise.resolve(asArray(value as Seq)) diff --git a/Signum.React/Scripts/ValueLineModal.tsx b/Signum.React/Scripts/ValueLineModal.tsx index 737b19234c..7d0a4dc0ea 100644 --- a/Signum.React/Scripts/ValueLineModal.tsx +++ b/Signum.React/Scripts/ValueLineModal.tsx @@ -63,7 +63,7 @@ export default function ValueLineModal(p: ValueLineModalProps) {

{message === undefined ? SelectorMessage.PleaseChooseAValueToContinue.niceToString() : message}

-
diff --git a/Signum.React/Signum.React.csproj b/Signum.React/Signum.React.csproj index aa4f5cf99e..b02767a99b 100644 --- a/Signum.React/Signum.React.csproj +++ b/Signum.React/Signum.React.csproj @@ -2,7 +2,7 @@ netcoreapp3.1 - 3.8 + 3.9 true true enable @@ -34,8 +34,8 @@ - - + + runtime; build; native; contentfiles; analyzers all diff --git a/Signum.Test/Signum.Test.csproj b/Signum.Test/Signum.Test.csproj index f0d8a1de20..9238105145 100644 --- a/Signum.Test/Signum.Test.csproj +++ b/Signum.Test/Signum.Test.csproj @@ -15,9 +15,9 @@ - - - + + +