Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
8e4d40edd0 | |||
f6afe90a63 |
@ -24,7 +24,7 @@ import * as dnsly from 'dnsly'
|
||||
|
||||
let myDnsly = new dnsly.Dnsly('google') // uses Google DNS Servers e.g 8.8.8.8
|
||||
myDnsly.getRecord('example.com','AAAA') // returns promise
|
||||
.then(record: dnsly.I_AAAA => { // AAAA record for google.com, the I_AAAA will give you proper typings for the record return type
|
||||
.then((record: dnsly.I_AAAA) => { // AAAA record for google.com, the I_AAAA will give you proper typings for the record return type
|
||||
// do something
|
||||
})
|
||||
```
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "dnsly",
|
||||
"version": "1.0.5",
|
||||
"version": "1.0.6",
|
||||
"description": "smart dns methods written in TypeScript",
|
||||
"main": "dist/index.js",
|
||||
"typings": "../dist/index.d.ts",
|
||||
|
Reference in New Issue
Block a user