From f8e328df88804a62707e2b80932e6d27b2932491 Mon Sep 17 00:00:00 2001 From: 295 Date: Fri, 26 Mar 2021 01:05:37 +0800 Subject: [PATCH] Add renderToNodeList type #868 (#869) --- packages/inferno-fela/index.d.ts | 1 + packages/preact-fela/index.d.ts | 2 ++ packages/react-fela/index.d.ts | 2 ++ 3 files changed, 5 insertions(+) diff --git a/packages/inferno-fela/index.d.ts b/packages/inferno-fela/index.d.ts index 1e6a64e79..94563d800 100755 --- a/packages/inferno-fela/index.d.ts +++ b/packages/inferno-fela/index.d.ts @@ -498,4 +498,5 @@ declare module "inferno-fela" { export function fe (): Function; + export function renderToNodeList(renderer: IRenderer): Inferno.VNode[] } diff --git a/packages/preact-fela/index.d.ts b/packages/preact-fela/index.d.ts index d4acd478a..02a80c8be 100644 --- a/packages/preact-fela/index.d.ts +++ b/packages/preact-fela/index.d.ts @@ -2074,5 +2074,7 @@ declare module "preact-fela" { renderer: IRenderer; } + export function renderToNodeList(renderer: IRenderer): Preact.VNode[] + export function useFela(props?: P): FelaHookProps; } diff --git a/packages/react-fela/index.d.ts b/packages/react-fela/index.d.ts index fbc27be33..32ea26be3 100755 --- a/packages/react-fela/index.d.ts +++ b/packages/react-fela/index.d.ts @@ -583,5 +583,7 @@ declare module "react-fela" { export function useFela(props?: P): FelaHookProps + export function renderToNodeList(renderer: IRenderer): React.ReactElement[] + export const fe: typeof React.createElement; }