hickory-dns icon indicating copy to clipboard operation
hickory-dns copied to clipboard

add TypedRecord and TypedRecordRef

Open bluejekyll opened this issue 2 years ago • 0 comments

@djc, here are the types I was suggesting. It's possible that TypedRecordRef is not necessary if we deprecate Record and replace all use cases with TypedRecord. A different option instead of deprecating would be to do a type alias of type Record = TypedRecord<RData>. I'm not sure which would be better for downstream dependencies.

If you like this, I can add everything necessary to make all RecordData be compatible with this, currently only SOA implements RecordData.

bluejekyll avatar Aug 28 '22 04:08 bluejekyll