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 11// @flow
22
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`.
37declare module 'custom-error-instance' {
48 declare class CustomError extends Error {
59 constructor ( messageOrProps ?: string | Object , properties ?: Object ) : this ;
@@ -13,11 +17,6 @@ declare module 'custom-error-instance' {
1317 originalMessage : string ;
1418 }
1519
16- // declare type CustomErrorFactory = (
17- // message?: string,
18- // config?: Object,
19- // ) => CustomError
20-
2120 declare type CustomErrorApi = (
2221 name ? : string ,
2322 parent ? : CustomError ,
You can’t perform that action at this time.
0 commit comments