grpc-js: make dnsUrl type PascalCase

This commit is contained in:
Patrick Remy 2020-04-09 21:44:09 +02:00
parent 0d927e6872
commit 226016c7dc
No known key found for this signature in database
GPG Key ID: FE25C0B14C0500CD
1 changed files with 2 additions and 4 deletions

View File

@ -331,14 +331,12 @@ export function setup(): void {
registerDefaultResolver(DnsResolver);
}
// camelCase needed for compatibility to grpc-native-js package
// eslint-disable-next-line @typescript-eslint/class-name-casing
export interface dnsUrl {
export interface DnsUrl {
host: string;
port?: string;
}
export function parseTarget(target: string): dnsUrl | null {
export function parseTarget(target: string): DnsUrl | null {
const match =
IPV4_REGEX.exec(target) ??
IPV6_REGEX.exec(target) ??