improve README

This commit is contained in:
Philipp Kunz 2016-11-15 22:42:25 +01:00
parent 700ab08315
commit 10952a9e4e

View File

@ -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 => { // AAAA record for google.com .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
}) })
``` ```