homebridge-prometheus-exporter/src/index.ts
Lars Strojny 1088a78079
Strict type imports (#17)
When a symbols is only used as a type, require `import type {…}`
2022-11-10 13:00:45 +01:00

8 lines
240 B
TypeScript

import type { API } from 'homebridge'
import { PLATFORM_NAME } from './settings'
import { PrometheusExporterPlatform } from './platform'
export = (api: API): void => {
api.registerPlatform(PLATFORM_NAME, PrometheusExporterPlatform)
}