##// END OF EJS Templates
Compatibility with dojo-typings package
cin -
r21:b1e622a3b266 default
parent child
Show More
@@ -1,10 +1,11
1 import declare = require("dojo/_base/declare");
1 import declare = require("dojo/_base/declare");
2 import { each } from "@implab/core-amd/safe";
2 import { each } from "@implab/core-amd/safe";
3 import { Constructor } from "@implab/core-amd/interfaces";
3 import { Constructor } from "@implab/core-amd/interfaces";
4 import dojo = require("dojo/_base/kernel");
4
5
5 // declare const declare: any;
6 // declare const declare: any;
6
7
7 type DeclareConstructor<T> = declare.DeclareConstructor<T>;
8 type DeclareConstructor<T> = dojo._base.DeclareConstructor<T>;
8
9
9 export interface AbstractConstructor<T = {}> {
10 export interface AbstractConstructor<T = {}> {
10 prototype: T;
11 prototype: T;
@@ -1,6 +1,7
1 import { Handle } from "dojo/interfaces";
1 import { Handle } from "dojo/interfaces";
2 import _WidgetBase = require("./_WidgetBase");
2 import _WidgetBase = require("./_WidgetBase");
3 import declare = require("dojo/_base/declare");
3 import declare = require("dojo/_base/declare");
4 import dojo = require("dojo/_base/html");
4
5
5 declare module "./_WidgetBase" {
6 declare module "./_WidgetBase" {
6 interface _WidgetBase {
7 interface _WidgetBase {
@@ -81,7 +82,7 interface _AttachMixin {
81 destroyRendering(preserveDom?: boolean): void;
82 destroyRendering(preserveDom?: boolean): void;
82 }
83 }
83
84
84 interface _AttachMixinConstructor extends declare.DeclareConstructor<_AttachMixin> { }
85 interface _AttachMixinConstructor extends dojo._base.DeclareConstructor<_AttachMixin> { }
85
86
86 declare const _AttachMixin: _AttachMixinConstructor;
87 declare const _AttachMixin: _AttachMixinConstructor;
87 export = _AttachMixin;
88 export = _AttachMixin;
@@ -1,11 +1,12
1 import dojo = require("./kernel");
2
1 declare module "./kernel" {
3 declare module "./kernel" {
2 interface Dojo {
4 interface Dojo {
3 declare: declare.Declare;
5 declare: dojo._base.Declare;
4 safeMixin: typeof declare.safeMixin;
6 safeMixin: typeof declare.safeMixin;
5 }
7 }
6 }
7
8
8 declare namespace declare {
9 namespace _base {
9 interface DeclareCreatedObject {
10 interface DeclareCreatedObject {
10 declaredClass: string;
11 declaredClass: string;
11
12
@@ -134,5 +135,8 declare namespace declare {
134 }
135 }
135 }
136 }
136
137
137 declare const declare: declare.Declare;
138 }
139
140
141 declare const declare: dojo._base.Declare;
138 export = declare;
142 export = declare;
General Comments 0
You need to be logged in to leave comments. Login now