/***********************************************************
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License
 **********************************************************/ export interface ContextBridgeError < T > extends Error { data : T ; } export const formatError = ( error ) : ContextBridgeError < any > => { return { name : error . name , message : error . message , data : { ... error } } ; } ;