Skip to content

Commit

Permalink
use correct errornames typings (#1115)
Browse files Browse the repository at this point in the history
  • Loading branch information
rtm7777 committed Sep 10, 2020
1 parent 71fd909 commit bf3a6fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/errors/errors.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
DexieError,
DexieErrorConstructor,
DexieErrors,
ModifyError,
ModifyErrorConstructor,
BulkError,
Expand All @@ -17,6 +18,6 @@ export declare const exceptions : ExceptionAliasSet & {
Type: ErrorConstructor,
Range: ErrorConstructor
};
export declare const errnames : {[P in keyof ExceptionSet]: P};
export declare const errnames : DexieErrors;
export declare const fullNameExceptions : ExceptionSet;
export declare function mapError (domError, message?) : DexieError;
4 changes: 2 additions & 2 deletions src/public/types/dexie-constructor.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Transaction } from "./transaction";
import { ThenShortcut } from "./then-shortcut";
import { TableSchema } from "./table-schema";
import { IndexSpec } from "./index-spec";
import { DexieExceptionClasses } from "./errors";
import { DexieExceptionClasses, DexieErrors } from "./errors";
import { PromiseExtendedConstructor } from "./promise-extended";
import { DexieEventSet } from "./dexie-event-set";
import { DexieDOMDependencies } from "./dexie-dom-dependencies";
Expand Down Expand Up @@ -50,5 +50,5 @@ export interface DexieConstructor extends DexieExceptionClasses {
//IndexSpec: {new():IndexSpec}; //? Deprecate
Events: (ctx?: any)=>DexieEventSet;

errnames: {[P in keyof DexieExceptionClasses]: P};
errnames: DexieErrors;
}

0 comments on commit bf3a6fc

Please sign in to comment.