From: Takuya Uehara Date: Sun, 1 Nov 2020 12:28:45 +0000 (+0900) Subject: Use TypeScript syntax highlight for TypeScript code (#7988) X-Git-Tag: v3.0.0-beta.5~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23de72c7e3fe2a0c8e2c8900bd514908c0e78f80;p=thirdparty%2FChart.js.git Use TypeScript syntax highlight for TypeScript code (#7988) --- diff --git a/docs/docs/developers/charts.md b/docs/docs/developers/charts.md index 1382ed09c..b9d1b6f88 100644 --- a/docs/docs/developers/charts.md +++ b/docs/docs/developers/charts.md @@ -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' {