mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Converting ungeneric "Array" to "any[]"
TypeScript 0.9.5 beta does not allow generic type references without the type argument. This code will still compile for 0.9.1 users. Flight and Ember have further compile problems in 0.9.5 that I don't feel qualified to address as I'm not versed in those libraries.
This commit is contained in:
Vendored
+7
-7
@@ -313,7 +313,7 @@ declare module OpenLayers {
|
||||
* application. In addition, the units property must also be set.
|
||||
* Use <resolutions> instead wherever possible.
|
||||
*/
|
||||
scales: Array;
|
||||
scales: any[];
|
||||
|
||||
/**
|
||||
* A list of map resolutions (map units per pixel) in descending
|
||||
@@ -321,7 +321,7 @@ declare module OpenLayers {
|
||||
* based on other resolution related properties (maxExtent,
|
||||
* maxResolution, maxScale, etc.).
|
||||
*/
|
||||
resolutions: Array;
|
||||
resolutions: any[];
|
||||
|
||||
/**
|
||||
* The maximum extent for the layer. Defaults to null.
|
||||
@@ -923,7 +923,7 @@ declare module OpenLayers {
|
||||
/**
|
||||
* Return a list of all points in this geometry.
|
||||
*/
|
||||
getVertices(nodes: boolean): Array;
|
||||
getVertices(nodes: boolean): any[];
|
||||
|
||||
/**
|
||||
* Return whether or not the geometry is at the specified location
|
||||
@@ -1695,8 +1695,8 @@ declare module OpenLayers {
|
||||
* {Array} An array of items where the given property matches the given
|
||||
* criteria.
|
||||
*/
|
||||
getBy(array: string, property: string, match: string): Array;
|
||||
getBy(array: string, property: string, match: Object): Array;
|
||||
getBy(array: string, property: string, match: string): any[];
|
||||
getBy(array: string, property: string, match: Object): any[];
|
||||
|
||||
/**
|
||||
* APIMethod: getLayersBy
|
||||
@@ -2865,7 +2865,7 @@ declare module OpenLayers {
|
||||
/**
|
||||
* Return a list of all points in this geometry.
|
||||
*/
|
||||
getVertices(nodes: boolean): Array;
|
||||
getVertices(nodes: boolean): any[];
|
||||
|
||||
static CLASS_NAME: string;
|
||||
}
|
||||
@@ -2929,7 +2929,7 @@ declare module OpenLayers {
|
||||
/**
|
||||
* Return a list of all points in this geometry.
|
||||
*/
|
||||
getVertices(nodes: boolean): Array;
|
||||
getVertices(nodes: boolean): any[];
|
||||
}
|
||||
|
||||
export class Curve extends Geometry.MultiPoint {
|
||||
|
||||
Reference in New Issue
Block a user