@types/react-html-parser
Advanced tools
@@ -16,4 +16,4 @@ // Type definitions for react-html-parser 2.0 | ||
| export interface Options { | ||
| decodeEntities?: boolean; | ||
| transform?: Transform; | ||
| decodeEntities?: boolean | undefined; | ||
| transform?: Transform | undefined; | ||
| preprocessNodes?(nodes: DomElement[]): any; | ||
@@ -20,0 +20,0 @@ } |
| MIT License | ||
| Copyright (c) Microsoft Corporation. All rights reserved. | ||
| Copyright (c) Microsoft Corporation. | ||
@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
| { | ||
| "name": "@types/react-html-parser", | ||
| "version": "2.0.1", | ||
| "version": "2.0.2", | ||
| "description": "TypeScript definitions for react-html-parser", | ||
| "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-html-parser", | ||
| "license": "MIT", | ||
@@ -19,3 +20,3 @@ "contributors": [ | ||
| "main": "", | ||
| "types": "index", | ||
| "types": "index.d.ts", | ||
| "repository": { | ||
@@ -31,4 +32,4 @@ "type": "git", | ||
| }, | ||
| "typesPublisherContentHash": "a12ab690a0aede2afd9e5ee241259c302343fa2d0f429dd63e03f01ed59abc04", | ||
| "typeScriptVersion": "2.8" | ||
| "typesPublisherContentHash": "fa7fb2703c5f3fbcd8745d8690acc52f1420275eed974bb0109b876e631637a4", | ||
| "typeScriptVersion": "3.6" | ||
| } |
@@ -8,10 +8,43 @@ # Installation | ||
| # Details | ||
| Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-html-parser | ||
| Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-html-parser. | ||
| ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-html-parser/index.d.ts) | ||
| ````ts | ||
| // Type definitions for react-html-parser 2.0 | ||
| // Project: https://github.com/wrakky/react-html-parser#readme | ||
| // Definitions by: Spencer Elliott <https://github.com/elliottsj> | ||
| // Wooram Jun <https://github.com/chatoo2412> | ||
| // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
| // TypeScript Version: 2.8 | ||
| Additional Details | ||
| * Last updated: Wed, 17 Jul 2019 21:36:30 GMT | ||
| * Dependencies: @types/react, @types/htmlparser2 | ||
| import { ReactElement } from "react"; | ||
| import { DomElement } from "htmlparser2"; | ||
| export interface Transform { | ||
| (node: DomElement, index: number, transform?: Transform): ReactElement | void | null; | ||
| } | ||
| export interface Options { | ||
| decodeEntities?: boolean | undefined; | ||
| transform?: Transform | undefined; | ||
| preprocessNodes?(nodes: DomElement[]): any; | ||
| } | ||
| export function convertNodeToElement( | ||
| node: DomElement, | ||
| index: number, | ||
| transform: Transform, | ||
| ): ReactElement; | ||
| export function processNodes(nodes: DomElement[], transform: Transform): ReactElement[]; | ||
| export default function HtmlParser(html: string, options?: Options): ReactElement[]; | ||
| ```` | ||
| ### Additional Details | ||
| * Last updated: Wed, 07 Jul 2021 17:33:45 GMT | ||
| * Dependencies: [@types/react](https://npmjs.com/package/@types/react), [@types/htmlparser2](https://npmjs.com/package/@types/htmlparser2) | ||
| * Global values: none | ||
| # Credits | ||
| These definitions were written by Spencer Elliott <https://github.com/elliottsj>, and Wooram Jun <https://github.com/chatoo2412>. | ||
| These definitions were written by [Spencer Elliott](https://github.com/elliottsj), and [Wooram Jun](https://github.com/chatoo2412). |
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
5012
35.53%0
-100%50
194.12%