Skip to content

Commit 71daa3e

Browse files
committed
renamed
1 parent ddbd272 commit 71daa3e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/api/get_dns_records_from_api.ts renamed to src/api/get_dns_records.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ import ApiRequestError from '../error/api_request_error.ts';
22
import FetchRequestError from '../error/fetch_request_error.ts';
33
import { DNSRecord } from '../record/dns_record.ts';
44
import supportedDnsRecordTypes from '../record/dns_record_type.ts';
5-
import { GetDnsRecordsFromApiOption } from './get_dns_records_from_api_option.ts';
5+
import { GetDnsRecordsOption } from './get_dns_records_option.ts';
66

77
/**
88
* This function gets all DNS records, filtered by the DNS record types.
99
*
1010
* @param options Options for the API fetch
1111
* @returns List of all DNS records found.
1212
*/
13-
export default function getDnsRecordsFromApi(options: GetDnsRecordsFromApiOption) : Promise<DNSRecord[]> {
13+
export default function getDnsRecordsFromApi(options: GetDnsRecordsOption) : Promise<DNSRecord[]> {
1414
return fetch(
1515
`${options.apiEndpoint}zones/${options.zoneId}/dns_records?type=${supportedDnsRecordTypes.join(',')}`,
1616
{

src/api/get_dns_records_from_api_option.ts renamed to src/api/get_dns_records_option.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* This interface represents options for the API fetch.
33
*/
4-
export interface GetDnsRecordsFromApiOption {
4+
export interface GetDnsRecordsOption {
55
/** API URL endpoint. */
66
apiEndpoint : string,
77
/** Token to access the API. */

0 commit comments

Comments
 (0)