diff --git a/CMakeLists.txt b/CMakeLists.txt index 8b60f4a..1966837 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.21) -project(venmic LANGUAGES CXX VERSION 3.2.1) +project(venmic LANGUAGES CXX VERSION 3.2.2) # -------------------------------------------------------------------------------------------------------- # Library options diff --git a/lib/module.d.ts b/lib/module.d.ts index 16b692b..c76a315 100644 --- a/lib/module.d.ts +++ b/lib/module.d.ts @@ -5,18 +5,32 @@ type LiteralUnion< BaseType extends string, > = LiteralType | (BaseType & Record); +type Optional< + Type, + Key extends keyof Type +> = Partial> & Omit; + export interface Prop { key: string; value: string; } +export interface LinkData +{ + include: Prop[]; + exclude: Prop[]; + + ignore_devices?: boolean; +} + + export class PatchBay { unlink(): void; list(props?: T[]): Record, string>[]; - link(data: {include?: Prop[], exclude?: Prop[], ignore_devices?: boolean}): boolean; + link(data: Optional | Optional): boolean; static hasPipeWire(): boolean; } diff --git a/package.json b/package.json index 528d7d0..3ac765e 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "private": false, "license": "MIT", "author": "Curve (https://github.com/Curve)", - "version": "3.2.1", + "version": "3.2.2", "main": "./lib/index.js", "types": "./lib/module.d.ts", "scripts": {