0

Please see the code here

var IQuery = {
    idxName: 'session',
    //keyRange: window.IDBKeyRange.only('1')
    keyRange: IDBKeyRange.only('1')
};

why it doesn't recognize IDBKeyRange ?

in lib.d.ts, I see these definitions.

interface IDBKeyRange {
    upper: any;
    upperOpen: boolean;
    lower: any;
    lowerOpen: boolean;
    bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
    only(value: any): IDBKeyRange;
    lowerBound(bound: any, open?: boolean): IDBKeyRange;
    upperBound(bound: any, open?: boolean): IDBKeyRange;
}
declare var IDBKeyRange: {
    prototype: IDBKeyRange;
    new (): IDBKeyRange;
}

1 Answer 1

1

This was a bug in the lib.d.ts file. You can get an updated copy from the CodePlex site.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.