Files
api/app/core/utils/vms/parse-domains.ts
T
Alexis Tyler 4e1b0bd72c chore: lint
2021-01-28 15:45:14 +10:30

15 lines
401 B
TypeScript

/*!
* Copyright 2019-2020 Lime Technology Inc. All rights reserved.
* Written by: Alexis Tyler
*/
import { parseDomain, DomainLookupType } from '..';
import { Domain } from '../../types';
/**
* Parse domains.
*/
export const parseDomains = async (type: DomainLookupType, domains: string[]): Promise<Domain[]> => {
return Promise.all(domains.map(async domain => parseDomain(type, domain)));
};