We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12c6c3b commit 3ede491Copy full SHA for 3ede491
1 file changed
src/api/dp.ts
@@ -38,11 +38,15 @@ type Domain = {
38
}
39
40
41
+type Item = {
42
+ domain: Domain;
43
+}
44
+
45
// Search distribution network for domain
46
export function dp(api: DanApi) {
47
async function search(query: string) {
48
const { results } = await api.endpoint.request('/dp/demand/domains', 'GET', { query });
- return results as Domain[];
49
+ return results as Item[];
50
51
52
return { search };
0 commit comments