create interface for ipc excetions

This commit is contained in:
MathieuG-P
2022-07-03 22:59:57 +02:00
parent b6627d322b
commit 0189d35514
2 changed files with 8 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
export interface BsmException {
type: "error"|"warning"
title: string,
msg?: string,
}
+3 -1
View File
@@ -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,
}