sterfive-bonjour-service
Version:
A Bonjour/Zeroconf implementation in TypeScript
21 lines (20 loc) • 463 B
TypeScript
/**
* Provide ServiceType
*/
export interface ServiceType {
name?: string;
protocol?: 'tcp' | 'udp' | string | null | undefined;
subtypes?: Array<string>;
}
/**
* Format input ServiceType to string
* @param data
* @returns
*/
export declare const toString: (data: ServiceType) => string;
/**
* Format input string to ServiceType
* @param string
* @returns
*/
export declare const toType: (string: string) => ServiceType;