mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
create interface for ipc excetions
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
export interface BsmException {
|
||||
type: "error"|"warning"
|
||||
title: string,
|
||||
msg?: string,
|
||||
}
|
||||
@@ -1,3 +1,5 @@
|
||||
import { BsmException } from "./bsm-exception.model";
|
||||
|
||||
export interface IpcRequest<T>{
|
||||
args?: T,
|
||||
responceChannel?: string
|
||||
@@ -5,6 +7,6 @@ export interface IpcRequest<T>{
|
||||
|
||||
export interface IpcResponse<T>{
|
||||
data?: T,
|
||||
error?: any,
|
||||
error?: BsmException,
|
||||
success: boolean,
|
||||
}
|
||||
Reference in New Issue
Block a user