]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Use TypeScript syntax highlight for TypeScript code (#7988)
authorTakuya Uehara <indigo.lain@gmail.com>
Sun, 1 Nov 2020 12:28:45 +0000 (21:28 +0900)
committerGitHub <noreply@github.com>
Sun, 1 Nov 2020 12:28:45 +0000 (07:28 -0500)
docs/docs/developers/charts.md

index 1382ed09c74207f65d1bea380237b1a43fc434ef..b9d1b6f880d57578a78189f13ae9508b7d2a9366 100644 (file)
@@ -159,7 +159,7 @@ When adding a new chart type, `IChartTypeRegistry` must contains the declaration
 
 For example, to provide typings for a new chart type that extends from a bubble chart, you would add a `.d.ts` containing:
 
-```javascript
+```ts
 import { IChartTypeRegistry } from 'chart.js'
 
 declare module 'chart.js' {