File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 1
1
import {
2
2
APIGatewayEvent ,
3
3
APIGatewayEventRequestContext ,
4
- Context ,
4
+ Context
5
5
} from 'aws-lambda' ;
6
6
7
7
export declare interface CookieOptions {
@@ -195,6 +195,26 @@ export declare class API {
195
195
run ( event : APIGatewayEvent , context : Context ) : { } ;
196
196
}
197
197
198
+ export declare class RouteError extends Error {
199
+ constructor ( message : string , path : string ) ;
200
+ }
201
+
202
+ export declare class MethodError extends Error {
203
+ constructor ( message : string , method : METHODS , path : string ) ;
204
+ }
205
+
206
+ export declare class ConfigurationError extends Error {
207
+ constructor ( message : string ) ;
208
+ }
209
+
210
+ export declare class ResponseError extends Error {
211
+ constructor ( message : string , code : number ) ;
212
+ }
213
+
214
+ export declare class FileError extends Error {
215
+ constructor ( message : string , err : object ) ;
216
+ }
217
+
198
218
declare function createAPI ( options ?: Options ) : API ;
199
219
200
220
export default createAPI ;
You can’t perform that action at this time.
0 commit comments