DefinitelyTyped/types/react-plotly.js/tsconfig.json
Domino987 e0f3c915f4 Added factory.d.ts (#35779)
* Added factory.d.ts

This enables the modular import of plotly descibere [here](https://github.com/plotly/plotly.js/tree/master/dist#partial-bundles).

import Plotly from 'plotly.js-basic-dist'
import createPlotlyComponent from 'react-plotly.js/factory';
export const Plot = createPlotlyComponent(Plotly);

* Add factory to index

This is needed because travis will fail due to unused file error

* removal of default

* Update index.d.ts

* Update index.d.ts

* Update tsconfig.json

* Update index.d.ts

* Add factory test
2019-06-21 08:42:13 -07:00

30 lines
624 B
JSON

{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6",
"dom"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"paths": {
"d3": [ "d3/v3" ]
},
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true,
"jsx": "react"
},
"files": [
"index.d.ts",
"factory.d.ts",
"react-plotly.js-tests.tsx"
]
}