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
|
let myDnsly = new dnsly.Dnsly('google') // uses Google DNS Servers e.g 8.8.8.8
|
||||||
myDnsly.getRecord('example.com','AAAA') // returns promise
|
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
|
// do something
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dnsly",
|
"name": "dnsly",
|
||||||
"version": "1.0.5",
|
"version": "1.0.6",
|
||||||
"description": "smart dns methods written in TypeScript",
|
"description": "smart dns methods written in TypeScript",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"typings": "../dist/index.d.ts",
|
"typings": "../dist/index.d.ts",
|
||||||
|
Reference in New Issue
Block a user