DefinitelyTyped/types/react-axe/index.d.ts
Akshay Karthik 0969775954 [react-axe] Initial set of typedefs (#34108)
* Add dts for react-axe

* Lint fixes

* Remove the v from the version header

* Set strictFunctionTypes to true per code review
2019-03-25 09:49:54 -07:00

23 lines
572 B
TypeScript

// Type definitions for react-axe 3.1
// Project: https://github.com/dequelabs/react-axe
// Definitions by: Akshay Karthik <https://github.com/akshaykarthik>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import * as React from "react";
import * as ReactDOM from "react-dom";
import { Spec } from "axe-core";
export = axe;
declare function axe(
react: typeof React,
reactDOM: typeof ReactDOM,
timeout: number,
config?: axe.ReactAxeConfig
): void;
declare namespace axe {
type ReactAxeConfig = Spec;
}