var number = 15;
var word = "Hello";
var strNumber = 15+" 1";
number.
word.
strNumber.
var folder = Folder("PROJECT");
folder.forEachFolder(function(folder) {
folder.
})
In this example we use a Task
and an Attachment
Class. There is a 1>n
relation between a task and attachements.
var attachment = ds.Attachment.createEntity(); // ds.Attachment.cey ==autocompletion==> createEntity()
attachment.task.attachments.forEach(function(attachement) {
attachment.task.attachments.first().
})
function handler(request, response){
var user = currentUser();
return user.fullName;
}
var result = ds.Attachment.query("ID =:1", 15);
result[15].
Modules/heroes.js
export class Hero {
constructor(){
// Autocompletion on this :
this.hello();
this.prop = 15;
}
hello(){
}
get prop(){
}
set prop(){
}
}
test.js
import * as heroes from 'heroes'
var Batman = new heroes.Hero();
Batman.
Modules/foo.ts
export class Foo {}
export interface IFoo {}
bar.ts
import fooModule = require("Foo");
fooModule.