mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 17:51:46 +00:00
Mouse event is not required
This commit is contained in:
+4
-1
@@ -9,6 +9,9 @@ import * as React from 'react';
|
||||
|
||||
export type LinkToFunction = (...args: any[]) => string;
|
||||
|
||||
export function linkTo<T>(book: string | LinkToFunction, kind?: string | LinkToFunction): React.MouseEventHandler<T>;
|
||||
export function linkTo<T>(
|
||||
book: string | LinkToFunction,
|
||||
kind?: string | LinkToFunction
|
||||
): (event?: React.MouseEvent<T>) => void;
|
||||
|
||||
export function hrefTo(kind: string, story: string): Promise<string>;
|
||||
|
||||
Reference in New Issue
Block a user