Add TypeScript integrations package
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
export interface IBluetoothAdvertisement {
|
||||
id: string;
|
||||
name?: string;
|
||||
rssi?: number;
|
||||
manufacturerData?: Record<string, string>;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
export interface IHttpProbeResult {
|
||||
url: string;
|
||||
status: number;
|
||||
headers: Record<string, string>;
|
||||
body?: unknown;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
export * as mdns from './mdns/index.js';
|
||||
export * as ssdp from './ssdp/index.js';
|
||||
export * as http from './http/index.js';
|
||||
export * as mqtt from './mqtt/index.js';
|
||||
export * as bluetooth from './bluetooth/index.js';
|
||||
export * as usb from './usb/index.js';
|
||||
@@ -0,0 +1,7 @@
|
||||
export interface IMdnsRecord {
|
||||
host?: string;
|
||||
port?: number;
|
||||
txt?: Record<string, string | undefined>;
|
||||
name?: string;
|
||||
type?: string;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
export interface IMqttTopicSample {
|
||||
topic: string;
|
||||
payload: string;
|
||||
retained?: boolean;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
export interface ISsdpResponse {
|
||||
location?: string;
|
||||
server?: string;
|
||||
st?: string;
|
||||
usn?: string;
|
||||
headers?: Record<string, string>;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
export interface IUsbDeviceDescriptor {
|
||||
vendorId: number;
|
||||
productId: number;
|
||||
manufacturer?: string;
|
||||
product?: string;
|
||||
serialNumber?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user