diff --git a/types/linkifyjs/linkifyjs-tests.ts b/types/linkifyjs/linkifyjs-tests.ts index bd7f67ea51..0376960065 100644 --- a/types/linkifyjs/linkifyjs-tests.ts +++ b/types/linkifyjs/linkifyjs-tests.ts @@ -4,7 +4,6 @@ import linkifyHtml from "linkifyjs/html"; import Linkify from "linkifyjs/react"; declare function describe(desc: string, f: () => void): void; -declare function it(desc: string, f: () => void): void; describe("linkifyjs/html", () => { // From the docs here: https://soapbox.github.io/linkifyjs/docs/options.html @@ -180,9 +179,7 @@ describe("linkifyjs/react", () => { React.createElement( Linkify, { - options: { - tagName: "p" - } + tagName: "p" }, React.createElement("span", "Hello https://google.com") ), diff --git a/types/linkifyjs/react.d.ts b/types/linkifyjs/react.d.ts index ce5dc24896..0631b6c460 100644 --- a/types/linkifyjs/react.d.ts +++ b/types/linkifyjs/react.d.ts @@ -3,6 +3,7 @@ import { LinkifyOptions } from "./index"; export interface LinkifyProps { options?: LinkifyOptions; + tagName?: string; } declare class Linkify extends React.Component {}