1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

DOCS: add reference tag for TypeScript server to recognise the type definitions (#2264)

Co-authored-by: Jed Fox <git@jedfox.com>
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
Birkhoff Lee
2023-04-12 05:26:03 +08:00
committed by GitHub
parent e0a6426ab4
commit 16976693f3

View File

@ -34,11 +34,12 @@ for the version of DNSControl you are using.
At this point some features (autocomplete) will work. However to get the full experience, including
type checking (i.e. red squiggly underlines when you misuse APIs), there is one more step.
Add this comment to the top of your `dnsconfig.js` file:
Add these comments to the top of your `dnsconfig.js` file:
{% code title="dnsconfig.js" %}
```javascript
// @ts-check
/// <reference path="types-dnscontrol.d.ts" />
```
{% endcode %}