munin/source/types.ts

52 lines
609 B
TypeScript
Raw Normal View History

2025-04-25 12:50:13 +02:00
namespace _munin
2025-04-25 00:48:05 +02:00
{
2025-04-25 12:50:13 +02:00
/**
*/
export type type_labels = {
head : string;
title : string;
time : string;
location : string;
};
2025-04-25 00:48:05 +02:00
2025-04-25 12:50:13 +02:00
2025-04-25 00:48:05 +02:00
/**
*/
export type type_event = {
title : string;
begin : lib_plankton.pit.type_datetime,
end : (null | lib_plankton.pit.type_datetime),
location : (null | string);
};
2025-04-25 12:50:13 +02:00
2025-04-25 00:48:05 +02:00
/**
*/
export type type_source = {
2025-04-25 12:50:13 +02:00
fetch : (
(
)
=>
Promise<Array<type_event>>
);
2025-04-25 00:48:05 +02:00
};
2025-04-25 12:50:13 +02:00
2025-04-25 00:48:05 +02:00
/**
*/
export type type_target = {
interval : Array<int>;
2025-04-25 12:50:13 +02:00
send : (
(
labels : type_labels,
event : type_event
)
=>
Promise<void>
);
2025-04-25 00:48:05 +02:00
};
}