mirror of
https://github.com/koush/scrypted.git
synced 2026-02-03 14:13:28 +00:00
webhook: fix build
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { HttpRequest, HttpRequestHandler, HttpResponse, MixinProvider, PushHandler, ScryptedDevice, ScryptedDeviceBase, ScryptedDeviceType, ScryptedInterface, ScryptedInterfaceDescriptors, Setting, Settings, SettingValue } from '@scrypted/sdk';
|
||||
import { HttpRequest, HttpRequestHandler, HttpResponse, MixinProvider, PushHandler, ScryptedDevice, ScryptedDeviceBase, ScryptedDeviceType, ScryptedInterface, ScryptedInterfaceDescriptors, Setting, Settings, SettingValue, WritableDeviceState } from '@scrypted/sdk';
|
||||
import sdk from '@scrypted/sdk';
|
||||
import { SettingsMixinDeviceBase } from "../../../common/src/settings-mixin";
|
||||
import { randomBytes } from 'crypto';
|
||||
@@ -218,7 +218,7 @@ class WebhookPlugin extends ScryptedDeviceBase implements Settings, MixinProvide
|
||||
];
|
||||
}
|
||||
|
||||
async getMixin(mixinDevice: any, mixinDeviceInterfaces: ScryptedInterface[], mixinDeviceState: { [key: string]: any; }): Promise<any> {
|
||||
async getMixin(mixinDevice: any, mixinDeviceInterfaces: ScryptedInterface[], mixinDeviceState: WritableDeviceState): Promise<any> {
|
||||
const ret = new WebhookMixin({
|
||||
mixinDevice,
|
||||
mixinDeviceState,
|
||||
|
||||
Reference in New Issue
Block a user