Skip to content

IDBKeyRange member definition is missing #1092

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
falsandtru opened this issue Nov 7, 2014 · 1 comment
Closed

IDBKeyRange member definition is missing #1092

falsandtru opened this issue Nov 7, 2014 · 1 comment
Labels
Duplicate An existing issue was already created

Comments

@falsandtru
Copy link
Contributor

IDBKeyRange has defined variable only member (except the prototype).
This type can not be declared.

// Example of other definition.
interface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
    operator: SVGAnimatedEnumeration; // interface only
    radiusX: SVGAnimatedNumber; // interface only
    radiusY: SVGAnimatedNumber; // interface only
    in1: SVGAnimatedString; // interface only
    SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number; // common
    SVG_MORPHOLOGY_OPERATOR_ERODE: number; // common
    SVG_MORPHOLOGY_OPERATOR_DILATE: number; // common
}
declare var SVGFEMorphologyElement: {
    prototype: SVGFEMorphologyElement;
    new(): SVGFEMorphologyElement;
    SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number; // common
    SVG_MORPHOLOGY_OPERATOR_ERODE: number; // common
    SVG_MORPHOLOGY_OPERATOR_DILATE: number; // common
}
// IDBKeyRange definition has variable only member.
interface IDBKeyRange {
    upper: any; // interface only
    upperOpen: boolean; // interface only
    lower: any; // interface only
    lowerOpen: boolean; // interface only
    // After definition is not defined.
    // Must be modified to suit the W3C definition.
    //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;
    bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange; // VARIABLE ONLY!!
    only(value: any): IDBKeyRange; // VARIABLE ONLY!!
    lowerBound(bound: any, open?: boolean): IDBKeyRange; // VARIABLE ONLY!!
    upperBound(bound: any, open?: boolean): IDBKeyRange; // VARIABLE ONLY!!
}

http://www.w3.org/TR/IndexedDB/#range-concept

interface IDBKeyRange {
readonly attribute any lower;
readonly attribute any upper;
readonly attribute boolean lowerOpen;
readonly attribute boolean upperOpen;
static IDBKeyRange only (any value);
static IDBKeyRange lowerBound (any lower, optional boolean open);
static IDBKeyRange upperBound (any upper, optional boolean open);
static IDBKeyRange bound (any lower, any upper, optional boolean lowerOpen, optional boolean upperOpen);

};

The issuer has made independent in order to decouple the discussion vendor prefix.

@falsandtru falsandtru changed the title IDBKeyRange member definition is missing IDBKeyRange member definition is missing from the interface Nov 7, 2014
@falsandtru falsandtru changed the title IDBKeyRange member definition is missing from the interface IDBKeyRange member definition is missing Nov 7, 2014
@danquirk danquirk added the Duplicate An existing issue was already created label Nov 24, 2014
@danquirk
Copy link
Member

#1075 covers this.

@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

2 participants