UNPKG

pw-stick-output

Version:

TypeScript utility for managing PipeWire audio node connections and routing with systemd integration

19 lines (18 loc) 685 B
import type { Stringable } from 'systemd-journald'; export type Thrtime = [number, number]; type LogDic<T> = T extends Stringable ? T : T extends any[] ? { [K in keyof T]: Log<T[K]>; } : T extends object ? { [K in keyof T]: Log<T[K]>; } : never; export type Log<T> = null | undefined | LogDic<T>; export type TLogArgumentDic<T> = ({ error?: Error; msg: string; } & Log<T>) | (Log<T> & Record<string | number, any>); export type TLogArgument<T> = TLogArgumentDic<Exclude<T, 'msg' | 'error'>> | Error | string; /** * Runtime snake_case converter (handles camelCase, PascalCase, spaces, and dashes). */ export declare function toSnakeCase(s: string): string; export {};