Use TypeScript syntax highlight for TypeScript code (#7988)

This commit is contained in:
Takuya Uehara 2020-11-01 21:28:45 +09:00 committed by GitHub
parent ff76a236bf
commit 23de72c7e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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' {