ntfy extend adapter
This commit is contained in:
parent
f4c97e6630
commit
ba1e0db942
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue