From 521725e9abe7bab8423b72d620c8665f086da4af Mon Sep 17 00:00:00 2001 From: Mtsg Date: Tue, 17 Apr 2018 07:51:24 +0900 Subject: [PATCH] Add type definitions for react-router-param-link. (#25004) * Add type definitions for react-router-param-link. * Declare TypeScript version. --- types/react-router-param-link/index.d.ts | 10 ++++++++ .../react-router-param-link-tests.tsx | 5 ++++ types/react-router-param-link/tsconfig.json | 25 +++++++++++++++++++ types/react-router-param-link/tslint.json | 3 +++ 4 files changed, 43 insertions(+) create mode 100644 types/react-router-param-link/index.d.ts create mode 100644 types/react-router-param-link/react-router-param-link-tests.tsx create mode 100644 types/react-router-param-link/tsconfig.json create mode 100644 types/react-router-param-link/tslint.json diff --git a/types/react-router-param-link/index.d.ts b/types/react-router-param-link/index.d.ts new file mode 100644 index 0000000000..1b168839f5 --- /dev/null +++ b/types/react-router-param-link/index.d.ts @@ -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 +// 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 { } diff --git a/types/react-router-param-link/react-router-param-link-tests.tsx b/types/react-router-param-link/react-router-param-link-tests.tsx new file mode 100644 index 0000000000..6de0efaef9 --- /dev/null +++ b/types/react-router-param-link/react-router-param-link-tests.tsx @@ -0,0 +1,5 @@ +import * as React from "react"; +import { ParamLink } from "react-router-param-link"; + +; +; diff --git a/types/react-router-param-link/tsconfig.json b/types/react-router-param-link/tsconfig.json new file mode 100644 index 0000000000..372a4076a5 --- /dev/null +++ b/types/react-router-param-link/tsconfig.json @@ -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" + ] +} diff --git a/types/react-router-param-link/tslint.json b/types/react-router-param-link/tslint.json new file mode 100644 index 0000000000..f93cf8562a --- /dev/null +++ b/types/react-router-param-link/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +}