File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
// @flow
2
2
3
+ // This is a partial libdef for custom-error-instance. It's filled out enough
4
+ // such that it should work for the purposes of validated. However, the
5
+ // documentation shows a potentially very complex API that might be hard to Flow
6
+ // to express to a general purpose audience such as `flow-typed`.
3
7
declare module 'custom-error-instance' {
4
8
declare class CustomError extends Error {
5
9
constructor ( messageOrProps ?: string | Object , properties ?: Object ) : this ;
@@ -13,11 +17,6 @@ declare module 'custom-error-instance' {
13
17
originalMessage : string ;
14
18
}
15
19
16
- // declare type CustomErrorFactory = (
17
- // message?: string,
18
- // config?: Object,
19
- // ) => CustomError
20
-
21
20
declare type CustomErrorApi = (
22
21
name ? : string ,
23
22
parent ? : CustomError ,
You can’t perform that action at this time.
0 commit comments