//typescript should be installed on your visual studio
//open power shell, navigate to the img script dev folder
//cd D:\shared\DmsCloud\Trunk\IMG\TypeScript
var __extends = this.__extends || function (d, b) {
    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    __.prototype = b.prototype;
    d.prototype = new __();
};
//reff these deffinition files if needed, on the top of your.ts files
/// 
/// 
/// 
//more type definition files(or to update the ones we have)
//https://github.com/borisyankov/DefinitelyTyped#readme
//primitive types in TypeScript
var aNumber;
var aBool;
var aString;
//usefull types in TypeScript
var anElement;
var anInput;
var aDiv;
var aSpan;
var aTable;
var aRow;
var aCell;
var aLinkl;
var aImage;
var aSelect;
// difined objects
// arrays, example =
function calclArray(input) {
    ;
}
// this function will see that a is a number difined in thing, therfore will always return a valid number
function process(x) {
    return x.a;
}
// this will validate that all none optional properties are present, and all input is correctly typed
var n = process({ a: 10, b: "hellow" });
// example class with (optional) constructor and function
var Point = (function () {
    function Point(x, y) {
        this.x = x;
        this.y = y;
    }
    // function
    Point.prototype.dist = function () {
        return Math.sqrt(this.x * this.x + this.y * this.y);
    };
    Object.defineProperty(Point.prototype, "distP", {
        // distance as a property instead of function
        get: function () {
            return Math.sqrt(this.x * this.x + this.y * this.y);
        },
        enumerable: true,
        configurable: true
    });
    Point.origin = new Point(0, 0);
    return Point;
})();
var p = new Point(10, 20);
var distance = p.dist();
// this is basically how you can build a class that inherits from another
var point3D = (function (_super) {
    __extends(point3D, _super);
    function point3D(x, y, z) {
        _super.call(this, x, y);
        this.z = z;
    }
    point3D.prototype.dist = function () {
        var d = _super.prototype.dist.call(this);
        return Math.sqrt(d * d + this.z * this.z);
    };
    return point3D;
})(Point);
// this function has a default value, use like in c#
function someFunction(x) {
    if (typeof x === "undefined") { x = ""; }
    return "Your input : " + x;
}
// jquery notes
//$(".test") selects all in classes .test
//$("p") selects all nodes pf p
//$("#test") selects a element of ID test
//$("#DivName").load(url); // fill the div with content from the axaj page
//$.get(ajaxUrl,function(data,status){ /* data=returned stuff, status=http page status(200) */});
//$("#UxButton").click(function () {$("#test").hide();}); button click will hide item id of test
//$(document).ready(function)	Binds a function to the ready event of a document (when the document is finished loading)
//$(selector).click(function)	Triggers, or binds a function to the click event of selected elements
//$(selector).dblclick(function)	Triggers, or binds a function to the double click event of selected elements
//$(selector).focus(function)	Triggers, or binds a function to the focus event of selected elements
//$(selector).mouseover(function)	Triggers, or binds a function to the mouseover event of
//# sourceMappingURL=notes.js.map