From a3fa05795a12f7b5fc1bfec51b0a2de6e67fe50e Mon Sep 17 00:00:00 2001 From: SPWizard01 Date: Thu, 17 Dec 2020 19:27:44 +0200 Subject: [PATCH] fix: typescript typings to match 5.0 documentation (#446) * Update index.d.ts * Update index.d.ts --- types/react-native-render-html/index.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/types/react-native-render-html/index.d.ts b/types/react-native-render-html/index.d.ts index 3e220b237..b273e38a0 100644 --- a/types/react-native-render-html/index.d.ts +++ b/types/react-native-render-html/index.d.ts @@ -212,7 +212,7 @@ export interface ContainerProps

{ * @param root - The root transient node. * @returns The modified root. */ - onParsed?: (root: TransientNode) => TransientNode; + onParsed?: (dom: HTMLNode[], root: TransientNode[]) => TransientNode[]; /** * Provide your styles for specific HTML tags. * @@ -264,15 +264,15 @@ export interface ContainerProps

{ */ textSelectable?: boolean; /** - * Target some specific texts and change their content, see [altering content](https://github.com/archriss/react-native-render-html#altering-content) + * Target some specific texts and change their content, see [altering content](https://github.com/archriss/react-native-render-html#alterdata) */ - alterData?: (...args: any[]) => any; + alterData?: (node: HTMLNode) => string | Falsy; /** - * Target some specific nested children and change them, see [altering content](https://github.com/archriss/react-native-render-html#altering-content) + * Target some specific nested children and change them, see [altering content](https://github.com/archriss/react-native-render-html#alterchildren) */ - alterChildren?: (...args: any[]) => any; + alterChildren?: (node: HTMLNode) => HTMLNode | Falsy; /** - * Target a specific node and change it, see [altering content](https://github.com/archriss/react-native-render-html#altering-content) + * Target a specific node and change it, see [altering content](https://github.com/archriss/react-native-render-html#alternode) */ alterNode?: (node: HTMLNode) => HTMLNode | Falsy; /**