ntfy extend adapter

This commit is contained in:
4ov 2022-12-17 17:54:05 +02:00
parent f4c97e6630
commit ba1e0db942
1 changed files with 2 additions and 1 deletions

View File

@ -5,9 +5,10 @@ const Config = z.object({
topic: z.string(),
});
export class Ntfy implements Adapter {
export class Ntfy extends Adapter {
config: z.infer<typeof Config>;
constructor(config: z.infer<typeof Config>) {
super()
this.config = Config.parse(config);
}