Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei committed May 25, 2023
1 parent d23b418 commit 2357a6a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ import {
AbstractValueIterator
} from 'abstract-level'

export type LevelErrorCode = 'LEVEL_PUT_ERROR' | 'LEVEL_NOT_FOUND' | 'LEVEL_GET_ERROR' | 'LEVEL_DEL_ERROR'
export type LevelErrorCode =
| 'LEVEL_PUT_ERROR'
| 'LEVEL_NOT_FOUND'
| 'LEVEL_GET_ERROR'
| 'LEVEL_DEL_ERROR'
| 'LEVEL_INVALID_VALUE'

export class LevelError extends Error {
public code: LevelErrorCode

Expand Down

0 comments on commit 2357a6a

Please sign in to comment.