olarak daktilo d3-hexbin':'d3 ve 'küresel kütüphaneler
/// <reference types="d3" />
/// <reference types="d3-hexbin" />
:
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://d3js.org/d3-hexbin.v0.2.min.js"></script>
... gibi .ts
bunları referans
... DefinitelyTyped tanımlarını kullanarak. Bu ...
const svg = d3.select('#hitmap').append('svg')
: Ancak bu çalışmasına rağmen
const hexbin = d3.hexbin().radius(binsize + 1)
... Bir başarısız:
Property 'hexbin' does not exist on type
'typeof "/Users/bytter/node_modules/@types/d3/index"'
Düşünceler?
İlgili: https://github.com/Microsoft/TypeScript/issues/7125 –