From bf6515edcb83bf50be797f26762de01e3d828f77 Mon Sep 17 00:00:00 2001 From: Gregor Petrin Date: Mon, 25 Mar 2019 15:57:15 +0100 Subject: [PATCH] fix(ts): export Promised as a value * Export Promised value to Typescript (fixes #21) Added a declaration of the global Promised value for typescript code. Without this, Javascript will work but the Typescript compiler will fail with `'Promised' only refers to a type, but is being used as a value here.` breaking the build. * Update index.d.ts --- types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index bc91df4..75688f2 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -20,7 +20,7 @@ interface Props { pendingDelay: Number | String } -export type Promised = ComponentOptions< +export var Promised: ComponentOptions< never, Data, DefaultMethods,