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:
@ -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 %}
|
||||
|
||||
|
Reference in New Issue
Block a user