mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Provide TypeScript typings for dnsconfig.js (#1830)
Co-authored-by: Jeffrey Cafferata <jeffrey@jcid.nl> Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
name: require
|
||||
parameters:
|
||||
- path
|
||||
ts_ignore: true
|
||||
---
|
||||
|
||||
`require(...)` loads the specified JavaScript or JSON file, allowing
|
||||
@ -41,14 +42,18 @@ function IncludeKubernetes() {
|
||||
```js
|
||||
// kubernetes/clusters/prod.js
|
||||
function includeK8Sprod() {
|
||||
return [ /* ... */ ];
|
||||
return [
|
||||
// ...
|
||||
];
|
||||
}
|
||||
```
|
||||
|
||||
```js
|
||||
// kubernetes/clusters/dev.js
|
||||
function includeK8Sdev() {
|
||||
return [ /* ... */ ];
|
||||
return [
|
||||
// ...
|
||||
];
|
||||
}
|
||||
```
|
||||
{% endcapture %}
|
||||
|
Reference in New Issue
Block a user