This repository was archived by the owner on Dec 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change
1
+ interface LevelUPError extends Error { }
2
+ interface InitializationError extends LevelUPError { }
3
+ interface OpenError extends LevelUPError { }
4
+ interface ReadError extends LevelUPError { }
5
+ interface WriteError extends LevelUPError { }
6
+ interface NotFoundError extends Error { }
7
+ interface EncodingError extends LevelUPError { }
8
+
9
+ interface LevelUPErrorConstructor < TError > {
10
+ new ( message ?: string ) : TError ;
11
+ ( message ?: string ) : TError ;
12
+ readonly prototype : TError ;
13
+ }
14
+
15
+ declare namespace levelerrors {
16
+ export var LevelUPError : LevelUPErrorConstructor < LevelUPError > ;
17
+ export var InitializationError : LevelUPErrorConstructor < InitializationError > ;
18
+ export var OpenError : LevelUPErrorConstructor < OpenError > ;
19
+ export var ReadError : LevelUPErrorConstructor < ReadError > ;
20
+ export var WriteError : LevelUPErrorConstructor < WriteError > ;
21
+ export var NotFoundError : LevelUPErrorConstructor < NotFoundError > ;
22
+ export var EncodingError : LevelUPErrorConstructor < EncodingError > ;
23
+ }
24
+
25
+ export = levelerrors
Original file line number Diff line number Diff line change 33
33
" errors"
34
34
],
35
35
"main" : " errors.js" ,
36
+ "typings" : " errors.d.ts" ,
36
37
"dependencies" : {
37
38
"errno" : " ~0.1.1"
38
39
},
You can’t perform that action at this time.
0 commit comments