Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 835 Bytes

README.md

File metadata and controls

41 lines (32 loc) · 835 Bytes

npm apache license

@types/d3

Standalone typescript definitions for D3 javscript library.

Why?

Because @types/d3 depends on a bunch of sub-packages like "@types/d3-array": "*". I have a build system which doesn't like this, and would prefer version pegged dependencies. So I made this package @platypii/d3.

How to use

Add to package.json:

{
  "devDependencies": {
    "@platypii/d3": "^0.0.1",
  }
}

Add to tsconfig.json:

{
  "compilerOptions": {
    "typeRoots": [
      "node_modules/@types",
      "node_modules/@platypii"
    ]
  }
}

Publishing

npm publish