From f85cc6f165aaa74fb2fa7076979672fdf3cb2bff Mon Sep 17 00:00:00 2001 From: Andy Date: Mon, 28 Aug 2017 07:17:18 -0700 Subject: [PATCH] yfiles: Fix compile errors (#19216) --- types/yfiles/index.d.ts | 3070 +++++++++++++++++++-------------------- 1 file changed, 1535 insertions(+), 1535 deletions(-) diff --git a/types/yfiles/index.d.ts b/types/yfiles/index.d.ts index d4ae30f08d..a3593bdc76 100644 --- a/types/yfiles/index.d.ts +++ b/types/yfiles/index.d.ts @@ -158,15 +158,15 @@ declare namespace yfiles{ * var MyList = yfiles.lang.Class('MyList', { * $extends: my.AbstractList, * $with: [my.Iterable, my.Collection], - * + * * constructor: function() { // the constructor function * }, - * + * * add: function(obj) { ... }, * size: { // transformed into a property * 'get': function() { return ...; } * }, - * + * * $static: { * create: function() { ... } * } @@ -176,7 +176,7 @@ declare namespace yfiles{ * list.add("hello"); * list.size === 1; // true * - * + * *

* The constructor property can be either a function (in case of a single constructor) or an object that is transformed * into named constructors. @@ -197,7 +197,7 @@ declare namespace yfiles{ * myrect = new Rect.FromPoint({x: 10, y: 10}, 50, 50); * myrect instanceof Rect; // true * - * + * *

* Named constructors can call other constructors and can be written like any other constructor, i.e. this will be a new * instance of the class that is being constructed. @@ -211,7 +211,7 @@ declare namespace yfiles{ *

      * Rect.$super.toString.call(this);
      * 
- * + * *

* If you do not specify the parent class of a new class, then {@link yfiles.lang.Object} will be used as its base type. The parent * class of {@link yfiles.lang.Object} is the standard JavaScript Object.prototype. @@ -285,13 +285,13 @@ declare namespace yfiles{ * //yfiles.lang.Class.injectInterfaces(myHitTestable, [yfiles.drawing.IHitTestable.$class, yfiles.support.ILookup.$class]); * //As well as using a variable number of arguments, such as: * //yfiles.lang.Class.injectInterfaces(myHitTestable, yfiles.drawing.IHitTestable, yfiles.support.ILookup); - * + * * //This is true now: * yfiles.drawing.IHitTestable.isInstance(myHitTestable); * //And the object can be used where an interface instance is expected: * graphEditorInputMode.clickInputMode.validClickHitTestable = myHitTestable; * - * + * *

* It is also possible to modify an object prototype, e.g. in TypeScript: Class definition: *

@@ -302,7 +302,7 @@ declare namespace yfiles{ * } * } * - * + * *

* Usage: *

@@ -317,7 +317,7 @@ declare namespace yfiles{ * //And the object can be used where an interface instance is expected: * graphEditorInputMode.clickInputMode.validClickHitTestable = myHitTestable; * - * + * * @param obj The object to modify. * @param interfaces Array or variable number of {@link }s, {@link } objects of interfaces or fully qualified string * names of interfaces. @@ -439,7 +439,7 @@ declare namespace yfiles{ /** * This methods creates an instance of the struct in which all of its values are set to their default values without using * any of its constructors. - * @returns + * @returns * @static */ static createDefault():any; @@ -478,7 +478,7 @@ declare namespace yfiles{ * }); * if(state === RequestState.FAILED) { ... } * - * + * * @class */ export interface Enum extends yfiles.lang.Object{} @@ -691,7 +691,7 @@ declare namespace yfiles{ * var attr = yfiles.lang.Attribute.getCustomAttribute(MyClass.$class, MyAttribute.$class); * console.log(attr.message + ' ' + attr.recipient); // 'hello world' * - * + * *

* Even though MyAttribute is invoked at the definition of MyClass, no attribute is created until the reflection API is * used (in the above example: using getCustomAttribute). @@ -908,7 +908,7 @@ declare namespace yfiles{ /** * Compares this object to the given object of the same type. * @param obj The object to compare this to. - * @returns + * @returns *