lib: add typing for dbus related variant and bytearray functions
This commit is contained in:
parent
9b843c89d6
commit
c43b3289d8
|
@ -134,8 +134,17 @@ declare module 'cockpit' {
|
|||
close(): void;
|
||||
}
|
||||
|
||||
type VariantType = string | Uint8Array | number | boolean | VariantType[];
|
||||
interface Variant {
|
||||
t: string;
|
||||
v: VariantType;
|
||||
}
|
||||
|
||||
function dbus(name: string | null, options?: DBusOptions): DBusClient;
|
||||
|
||||
function variant(type: string, value: VariantType): Variant;
|
||||
function byte_array(string: string): string;
|
||||
|
||||
/* === cockpit.file ========================== */
|
||||
|
||||
interface FileSyntaxObject<T, B> {
|
||||
|
|
Loading…
Reference in New Issue