From 9ce42c577f4cae4cb25075de19963fe6f4b2573c Mon Sep 17 00:00:00 2001 From: Boris Yankov Date: Mon, 22 Oct 2012 10:44:49 +0300 Subject: [PATCH] Ember definitions update --- Definitions/ember-1.0.d.ts | 81 +++++++++++++++++++++----------------- README.md | 9 +++-- 2 files changed, 49 insertions(+), 41 deletions(-) diff --git a/Definitions/ember-1.0.d.ts b/Definitions/ember-1.0.d.ts index 4dfafcb09a..1ede154b1b 100644 --- a/Definitions/ember-1.0.d.ts +++ b/Definitions/ember-1.0.d.ts @@ -2,42 +2,49 @@ // Project: http://emberjs.com/ // Definitions: https://github.com/borisyankov/DefinitelyTyped -module Em { - // $; - export function A(arr?: any[]): NativeArray; - export function addListener(obj: any, eventName: string, targetOrMethod: any, method: any): void; - export function alias(methodName: Descriptor): Alias; - export function assert(desc: string, test: bool): void; - export function beforeObserver(func: Function, propertyNames: string): Function; - export function bind(obj: any, to: string, from: string): Binding; - export function cacheFor(obj: any, key: string): void; - - - export interface Alias { - } - - class Application { - static create(): Application; - MyView: View; - } - - export interface ArrayController { - } - - export interface Binding { - } - - export interface Descriptor { - } - - export interface NativeArray { - activate(): void; - } - - export interface Object { - } - - export class View { - } +interface EmberApplication { + create(): EmberApplication; + MyView: EmberView; } + +interface EmberAlias { +} + +interface EmberArrayController { +} + +interface EmberBinding { +} + +interface EmberDescriptor { +} + +interface EmberNativeArray { + activate(): void; +} + +interface EmberObject { +} + +interface EmberView { +} + +interface EmberStatic { + + $; // jQuery + A(arr?: any[]): EmberNativeArray; + addListener(obj: any, eventName: string, targetOrMethod: any, method: any): void; + alias(methodName: EmberDescriptor): EmberAlias; + assert(desc: string, test: bool): void; + beforeObserver(func: Function, propertyNames: string): Function; + bind(obj: any, to: string, from: string): EmberBinding; + cacheFor(obj: any, key: string): void; + + Application: EmberApplication; + Object: EmberObject; + View: EmberView; +} + +declare var Em: EmberStatic; +declare var Ember: EmberStatic; \ No newline at end of file diff --git a/README.md b/README.md index 88d913765e..c281acfa4d 100644 --- a/README.md +++ b/README.md @@ -32,11 +32,12 @@ Complete Next ---- * ember.js -* Angular.js -* google.visualization -* jQuery Mobile -* jQuery.Validate +* Facebook SDK * Knockout.Mapping +* jQuery.Validate +* jQuery Mobile +* google.visualization +* Angular.js * Meteor * PhoneGap * Isotope