From 325b3e9b795d90a4249eb5e93f31976dc6a35fb7 Mon Sep 17 00:00:00 2001 From: Aaron Beall Date: Thu, 9 Apr 2020 16:12:51 -0400 Subject: [PATCH] Added stub definitions for react-bootstrap v1.0 (#43756) * Added missing $filter overload Added missing $filter overload that allows multiple strings to translate and returns an object * Added v1 dir with stub * Updated def header * Added v1/tsconfig.json to make publisher happy * Added index.d.ts to files * Added paths per build failure * Moved paths to the right tsconfig * Fixed path mapping --- types/react-bootstrap/v1/index.d.ts | 10 ++++++++ types/react-bootstrap/v1/tsconfig.json | 33 ++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 types/react-bootstrap/v1/index.d.ts create mode 100644 types/react-bootstrap/v1/tsconfig.json diff --git a/types/react-bootstrap/v1/index.d.ts b/types/react-bootstrap/v1/index.d.ts new file mode 100644 index 0000000000..b0e7026640 --- /dev/null +++ b/types/react-bootstrap/v1/index.d.ts @@ -0,0 +1,10 @@ +// Type definitions for react-bootstrap 1.0 +// Project: https://github.com/react-bootstrap/react-bootstrap, https://react-bootstrap.github.io +// Definitions by: Aaron Beall +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.8 + +/** + * This is a stub types definition for react-bootstrap. React-bootstrap provides its own type definitions for v1.0.0, + * so you don't need @types/react-bootstrap installed! + */ diff --git a/types/react-bootstrap/v1/tsconfig.json b/types/react-bootstrap/v1/tsconfig.json new file mode 100644 index 0000000000..7843fb94c0 --- /dev/null +++ b/types/react-bootstrap/v1/tsconfig.json @@ -0,0 +1,33 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../../", + "jsx": "react", + "typeRoots": [ + "../../" + ], + "paths": { + "react-bootstrap": [ + "react-bootstrap/v1" + ], + "react-bootstrap/*": [ + "react-bootstrap/v1/*" + ] + }, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "noUnusedLocals": false + }, + "files": [ + "index.d.ts" + ] +}