Skip to content

Commit

Permalink
fix: typescript typings to match 5.0 documentation (#446)
Browse files Browse the repository at this point in the history
* Update index.d.ts

* Update index.d.ts
  • Loading branch information
SPWizard01 authored Dec 17, 2020
1 parent d81933d commit a3fa057
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions types/react-native-render-html/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export interface ContainerProps<P = {}> {
* @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.
*
Expand Down Expand Up @@ -264,15 +264,15 @@ export interface ContainerProps<P = {}> {
*/
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;
/**
Expand Down

0 comments on commit a3fa057

Please sign in to comment.