-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
DuplicateAn existing issue was already createdAn existing issue was already created
Description
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.
Metadata
Metadata
Assignees
Labels
DuplicateAn existing issue was already createdAn existing issue was already created