* feat: add pi hole summary integration * feat: add pi hole summary widget * fix: type issues with integrations and integrationIds * feat: add middleware for integrations and improve cache redis channel * feat: add error boundary for widgets * fix: broken lock file * fix: format format issues * fix: typecheck issue * fix: deepsource issues * fix: widget sandbox without error boundary * chore: address pull request feedback * chore: remove todo comment and created issue * fix: format issues * fix: deepsource issue
19 lines
506 B
TypeScript
19 lines
506 B
TypeScript
import { createQueueChannel, createSubPubChannel } from "./lib/channel";
|
|
|
|
export { createCacheChannel } from "./lib/channel";
|
|
|
|
export const exampleChannel = createSubPubChannel<{ message: string }>("example");
|
|
export const queueChannel = createQueueChannel<{
|
|
name: string;
|
|
executionDate: Date;
|
|
data: unknown;
|
|
}>("common-queue");
|
|
|
|
export interface LoggerMessage {
|
|
message: string;
|
|
level: string;
|
|
timestamp: string;
|
|
}
|
|
|
|
export const loggingChannel = createSubPubChannel<LoggerMessage>("logging");
|