Skip to content

Instantly share code, notes, and snippets.

@webbiesdk
webbiesdk / t3.js.d.ts
Created February 16, 2016 11:45
t3.js.d.ts
declare module Box {
export class Context {
constructor (application: any, element: any);
broadcast: (name: any, data: any) => void;
getGlobalConfig: (name: any) => any;
application: any;
getElement: () => any;
getGlobal: (name: any) => any;
reportError: (exception: any) => void;
hasService: (serviceName: string) => boolean;
#!/bin/sh
while true
do
find . -print
sleep 1
done
declare class Awesomplete {
constructor(input: HTMLElement | string, o: Object);
static all: Array<any>;
static $$: (expr: string | NodeSelector, con?: any) => NodeList;
static ITEM: (text: string, input: string) => HTMLElement;
static $: {
(expr: string | Element, con?: NodeSelector) : string | Element;
regExpEscape: (s: {replace: (arg0: RegExp, arg1: string) => void}) => any;
create: (tag: string, o: any) => HTMLElement;
fire: (target: EventTarget, type: string, properties: any) => any;