Skip to content

Commit

Permalink
renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
Mqxx committed Aug 29, 2024
1 parent 86f4387 commit ddbd272
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/api/get_dns_records_from_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import ApiRequestError from '../error/api_request_error.ts';
import FetchRequestError from '../error/fetch_request_error.ts';
import { DNSRecord } from '../record/dns_record.ts';
import supportedDnsRecordTypes from '../record/dns_record_type.ts';
import { GetDNSRecordsFromApiOption } from './get_dns_records_from_api_option.ts';
import { GetDnsRecordsFromApiOption } from './get_dns_records_from_api_option.ts';

/**
* This function gets all DNS records, filtered by the DNS record types.
*
* @param options Options for the API fetch
* @returns List of all DNS records found.
*/
export default function getDnsRecordsFromApi(options: GetDNSRecordsFromApiOption) : Promise<DNSRecord[]> {
export default function getDnsRecordsFromApi(options: GetDnsRecordsFromApiOption) : Promise<DNSRecord[]> {
return fetch(
`${options.apiEndpoint}zones/${options.zoneId}/dns_records?type=${supportedDnsRecordTypes.join(',')}`,
{
Expand Down
2 changes: 1 addition & 1 deletion src/api/get_dns_records_from_api_option.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This interface represents options for the API fetch.
*/
export interface GetDNSRecordsFromApiOption {
export interface GetDnsRecordsFromApiOption {
/** API URL endpoint. */
apiEndpoint : string,
/** Token to access the API. */
Expand Down

0 comments on commit ddbd272

Please sign in to comment.