mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Extend anchor props
This commit is contained in:
parent
67e641be9b
commit
1f8ed6f5ad
14
types/react-csv/components/Link.d.ts
vendored
14
types/react-csv/components/Link.d.ts
vendored
@ -1,5 +1,15 @@
|
||||
import { Component } from "react";
|
||||
import { CommonPropTypes } from "./CommonPropTypes";
|
||||
|
||||
export default class Link extends Component<CommonPropTypes> {
|
||||
}
|
||||
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
||||
|
||||
interface LinkProps
|
||||
extends CommonPropTypes,
|
||||
Omit<
|
||||
React.DetailedHTMLProps<
|
||||
React.AnchorHTMLAttributes<HTMLAnchorElement>,
|
||||
HTMLAnchorElement
|
||||
>,
|
||||
"onClick"
|
||||
> {}
|
||||
export default class Link extends Component<LinkProps> {}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user