Files
react-native-firebase/src/common/commonTypes.flow.js
2018-09-21 00:04:14 +01:00

20 lines
412 B
JavaScript

export type NativeErrorObject = {
code: string,
message: string,
nativeErrorCode: string | number,
nativeErrorMessage: string,
};
export type NativeErrorResponse = {
error: NativeErrorObject,
// everything else
[key: string]: ?any,
};
export interface NativeErrorInterface extends Error {
+code: string;
+message: string;
+nativeErrorCode: string | number;
+nativeErrorMessage: string;
}