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
This commit is contained in:
Aaron Beall
2020-04-09 13:12:51 -07:00
committed by GitHub
parent 82f5b794c1
commit 325b3e9b79
2 changed files with 43 additions and 0 deletions
+10
View File
@@ -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 <https://github.com/aaronbeall>
// 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!
*/
+33
View File
@@ -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"
]
}