mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Fix the typing of L.Icon.Default
This wasn't quite right and the 'develop' branch of the TypeScript compiler no longer accepted the hacky typing. This should be the correct typing according to information from the TS team here: https://typescript.codeplex.com/workitem/132
This commit is contained in:
Vendored
+8
-11
@@ -1903,20 +1903,17 @@ declare module L {
|
||||
* Creates an icon instance with the given options.
|
||||
*/
|
||||
constructor(options: IconOptions);
|
||||
|
||||
/**
|
||||
* Default properties for newly constructed icons.
|
||||
*/
|
||||
public static Default : IconDefault;
|
||||
}
|
||||
|
||||
export class IconDefault extends Icon {
|
||||
/**
|
||||
* Creates an icon instance with default options.
|
||||
*/
|
||||
constructor();
|
||||
export module Icon {
|
||||
export class Default extends Icon {
|
||||
/**
|
||||
* Creates an icon instance with default options.
|
||||
*/
|
||||
constructor();
|
||||
|
||||
imagePath: string;
|
||||
static imagePath: string;
|
||||
}
|
||||
}
|
||||
|
||||
export interface DivIconOptions {
|
||||
|
||||
Reference in New Issue
Block a user