mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-01-12 22:50:20 +08:00
20 lines
412 B
JavaScript
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;
|
|
}
|