bajascript
Version:
BajaScript Rewritten in TypeScript.
110 lines (75 loc) • 1.84 kB
TypeScript
export as namespace baja;
export const version: string;
export function isStarted(): boolean;
export function isStopped(): boolean;
export function isStopping(): boolean;
export function start(obj?: Function | {
started?: Function,
commFail?: Function,
typeSpecs?: string[],
navFile?: boolean,
}): void;
export function started(func: Function): void;
export function stop(obj?: Function | {
stopped?: Function,
preStop?: Function,
}): void;
export function getUserName(): string;
export function getLanguage(): string;
export function getUserHome(): Ord;
export class Slot {
}
export class Property extends Slot {
}
export class Type {
}
export class Object {
equivalent(obj: any): boolean;
getIcon(): any;
getType(): Type;
}
export class Value extends Object {
newCopy(): Value;
}
export class Simple extends Value {
equals(obj: any): boolean;
}
export class Complex extends Value {
}
export class Ord {
static make(ord: string): Ord;
get(obj?: {
ok?: (target: Object) => any,
fail?: Function,
base?: any,
lease?: boolean,
leaseTime?: number,
subscriber?: Subscriber,
cursor?: any,
}): void;
}
export class Subscriber {
attach(event: string, handler: Function);
detach(event: string, handler: Function);
subscribe(comps: any[]);
unsubscribeAll(obj?: {
ok?: Function,
fail?: Function,
batch?: any,
}): void;
}
export class BatchResolve {
constructor(ords: string[]);
resolve(obj?: {
ok?: Function,
fail?: Function,
base?: any,
lease?: boolean,
leaseTime?: number,
subscriber?: Subscriber,
}): void;
getTargetObjects(): Object[];
}
export namespace comm {
var baseUrl: string;
}