mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
Add missing tagName prop.
This commit is contained in:
@@ -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")
|
||||
),
|
||||
|
||||
1
types/linkifyjs/react.d.ts
vendored
1
types/linkifyjs/react.d.ts
vendored
@@ -3,6 +3,7 @@ import { LinkifyOptions } from "./index";
|
||||
|
||||
export interface LinkifyProps {
|
||||
options?: LinkifyOptions;
|
||||
tagName?: string;
|
||||
}
|
||||
|
||||
declare class Linkify extends React.Component<LinkifyProps> {}
|
||||
|
||||
Reference in New Issue
Block a user