From 1acdcf48fe3497f730c9e82b86a4c0c9a598ea10 Mon Sep 17 00:00:00 2001 From: Damian Osipiuk Date: Fri, 25 Aug 2023 23:36:03 +0200 Subject: [PATCH 1/2] fix: missing type exports for `hasInjectionContext` --- lib/v2.7/index.d.ts | 2 ++ lib/v2/index.d.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/v2.7/index.d.ts b/lib/v2.7/index.d.ts index 0734874..bba1dff 100644 --- a/lib/v2.7/index.d.ts +++ b/lib/v2.7/index.d.ts @@ -34,3 +34,5 @@ export interface App { } export declare function createApp(rootComponent: any, rootProps?: any): App // #endregion + +export function hasInjectionContext(): boolean diff --git a/lib/v2/index.d.ts b/lib/v2/index.d.ts index 962e0a8..ea704c9 100644 --- a/lib/v2/index.d.ts +++ b/lib/v2/index.d.ts @@ -29,3 +29,5 @@ export { version, install, } + +export function hasInjectionContext(): boolean From 0ae16941034b3b0070cb26eb0038f09fa371069a Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Sat, 26 Aug 2023 10:52:40 +0200 Subject: [PATCH 2/2] Apply suggestions from code review --- lib/v2.7/index.d.ts | 2 +- lib/v2/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/v2.7/index.d.ts b/lib/v2.7/index.d.ts index bba1dff..827c7b2 100644 --- a/lib/v2.7/index.d.ts +++ b/lib/v2.7/index.d.ts @@ -35,4 +35,4 @@ export interface App { export declare function createApp(rootComponent: any, rootProps?: any): App // #endregion -export function hasInjectionContext(): boolean +export declare function hasInjectionContext(): boolean diff --git a/lib/v2/index.d.ts b/lib/v2/index.d.ts index ea704c9..bbdcbc5 100644 --- a/lib/v2/index.d.ts +++ b/lib/v2/index.d.ts @@ -30,4 +30,4 @@ export { install, } -export function hasInjectionContext(): boolean +export declare function hasInjectionContext(): boolean