DenoでD3.jsを型付きで使う
DenoからD3.jsを型付きで使いたいときはSkypackから読み込む
esm.shだと型定義ファイルのbundleに失敗する
D3のAPI reference
型定義はdoc.deno.landで調べる
どの函数にもアホほど細かい説明がつけられている
d3
d3-selection
d3-scale
d3-axis
d3-scale-chromatic
d3-shape
d3-zoom
d3-drag
d3-force
d3-array
d3-hsv
d3-contour
d3-geo
それ以外の型定義閲覧方法
@types/d3のコメントを読むよりも見やすい
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/d3-selection/index.d.ts
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/d3-scale/index.d.ts
@types/d3の読みにくい点
コメントの色がいまいち
定義に使われている他の型の説明をすぐ読めない
doc.deno.landだとリンクになってくれる
#2024-02-14 15:01:42
#2023-02-07 13:30:30
#2023-02-04 05:56:37
#2023-01-16 19:27:50
#2023-01-15 18:43:44
#2023-01-13 07:03:39
#2023-01-12 23:00:07