Generate TypeScript typings for functions supplied to dnsconfig.js#1830
Conversation
tlimoncelli
left a comment
There was a problem hiding this comment.
Holy cow! I didn't even know that kind of thing was possible!
This is awesome! Yes, please and thank you!
|
Some questions (actually 1 question) based on my reading through the docs:
|
According to the source of all knowledge 0 is reserved. I guess we could play it safe and permit it. Though, the world won't end if we guess wrong as I don't think many people use SSHFP ;-) Tom |
|
Ok, I think this is ready for review! I’ve added a |
…fiers' menu.
…on needed`.
…vider specific` menu `ClouDNS`.
…vider specific` menu `NS1`.
…on needed`.
…on needed`.
…rted' menu.
…vider specific` menu `ClouDNS`.
…vider specific` menu `NS1`.
…on needed`.
A
.d.tsfile with full documentation is now generated from existing docs files (with a few manual additions). If placed next to adnsconfig.jsfile, supporting editors (VS Code but also others as well) will have a significantly improved DX.I’m marking this as WIP because I need to do a bunch more, but I’m very interested in feedback!
---appears later on in the document)FETCH(currently it usesfetch’s typings which are only available to TS code that enables the DOM library)dnscontrol.d.tsfile into the current directorytypes.d.tsfile into Git so that it can be fetched from the current release’s tag?)jsconfig.jsonto configure TypeScript in editors?CLI_DEFAULTScause the names it’s passed to show up as variables (Result: Probably not)Documentation is shown inline:

Autocomplete shows all available record types:
