mirror of
https://github.com/unraid/api.git
synced 2026-01-14 12:39:53 -06:00
22 lines
468 B
TypeScript
22 lines
468 B
TypeScript
/*!
|
|
* Copyright 2019-2020 Lime Technology Inc. All rights reserved.
|
|
* Written by: Alexis Tyler
|
|
*/
|
|
|
|
import fetch from 'node-fetch';
|
|
import { Notifier, NotifierOptions } from './notifier';
|
|
|
|
export interface Options extends NotifierOptions {}
|
|
|
|
/**
|
|
* HTTP notifier.
|
|
*/
|
|
export class HttpNotifier extends Notifier {
|
|
readonly $http = fetch;
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-useless-constructor
|
|
constructor(options: Options) {
|
|
super(options);
|
|
}
|
|
}
|