mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 23:37:04 +00:00
Add type definitions for react-router-param-link. (#25004)
* Add type definitions for react-router-param-link. * Declare TypeScript version.
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
// Type definitions for react-router-param-link 1.0
|
||||
// Project: https://github.com/mtsg/react-router-param-link
|
||||
// Definitions by: Motosugi Murata <https://github.com/mtsg>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.6
|
||||
|
||||
import * as React from "react";
|
||||
import { LinkProps } from "react-router-dom";
|
||||
|
||||
export class ParamLink extends React.Component<LinkProps, any> { }
|
||||
@@ -0,0 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { ParamLink } from "react-router-param-link";
|
||||
|
||||
<ParamLink to={"path"} />;
|
||||
<ParamLink to={"path/:param"} />;
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"jsx": "react",
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"noEmit": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"react-router-param-link-tests.tsx"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
Reference in New Issue
Block a user