Update readme and metadata in several definition files

This commit is contained in:
Boris Yankov 2013-01-20 07:08:19 +02:00
parent 33156fee7c
commit b785ffc254
6 changed files with 206 additions and 182 deletions

View File

@ -31,24 +31,26 @@ List of Libraries
* [AngularJS](http://angularjs.org) (by [Diego Vilar](https://github.com/diegovilar)) ([wiki](https://github.com/borisyankov/DefinitelyTyped/wiki/AngularJS-Definitions-Usage-Notes))
* [async](https://github.com/caolan/async) (by [Boris Yankov](https://github.com/borisyankov))
* [Backbone.js](http://backbonejs.org/) (by [Boris Yankov](https://github.com/borisyankov))
* [Bootbox](https://github.com/makeusabrew/bootbox) (by [Vincent Bortone](https://github.com/vbortone/))
* [Bootstrap](http://twitter.github.com/bootstrap/) (by [Boris Yankov](https://github.com/borisyankov))
* [bootstrap.datepicker](https://github.com/eternicode/bootstrap-datepicker) (by [Boris Yankov](https://github.com/borisyankov))
* [Box2DWeb](http://code.google.com/p/box2dweb/) (by [Josh Baldwin](https://github.com/jbaldwin/))
* [Breeze](http://www.breezejs.com/) (by [Boris Yankov](https://github.com/borisyankov))
* [CodeMirror](http://codemirror.net) (by [François de Campredon](https://github.com/fdecampredon))
* [Chosen](http://harvesthq.github.com/chosen/) (by [Boris Yankov](https://github.com/borisyankov))
* [Chrome](http://developer.chrome.com/extensions/) (by [Matthew Kimber](https://github.com/matthewkimber))
* [dynatree](http://code.google.com/p/dynatree/) (by [François de Campredon](https://github.com/fdecampredon))
* [CodeMirror](http://codemirror.net) (by [François de Campredon](https://github.com/fdecampredon))
* [d3.js](http://d3js.org/) (from TypeScript samples)
* [EaselJS](http://www.createjs.com/#!/EaselJS) (by [Pedro Ferreira](https://bitbucket.org/drk4))
* [ember.js](http://emberjs.com/) (by [Boris Yankov](https://github.com/borisyankov))
* [Express](http://expressjs.com/) (by [Boris Yankov](https://github.com/borisyankov))
* [Fabric.js](http://fabricjs.com/) (by [Oliver Klemencic](https://github.com/oklemencic/))
* [Fancybox](http://fancybox.net/) (by [Boris Yankov](https://github.com/borisyankov))
* [Finite State Machine](https://github.com/jakesgordon/javascript-state-machine) (by [Boris Yankov](https://github.com/borisyankov))
* [Foundation](http://foundation.zurb.com/) (by [Boris Yankov](https://github.com/borisyankov))
* [GreenSock Animation Platform (GSAP)](http://www.greensock.com/get-started-js/) (by [Robert S.](https://github.com/codeBelt))
* [GoogleMaps](https://developers.google.com/maps/) (by [Esben Nepper](https://github.com/eNepper))
* [Handlebars](http://handlebarsjs.com/) (by [Boris Yankov](https://github.com/borisyankov))
* [Hammer.js](http://eightmedia.github.com/hammer.js/) (by [Boris Yankov](https://github.com/borisyankov))
* [Handlebars](http://handlebarsjs.com/) (by [Boris Yankov](https://github.com/borisyankov))
* [Highcharts](http://www.highcharts.com/) (by [damianog](https://github.com/damianog))
* [History.js](https://github.com/balupton/History.js/) (by [Boris Yankov](https://github.com/borisyankov))
* [Humane.js](http://wavded.github.com/humane-js/) (by [John Vrbanac](https://github.com/jmvrbanac))
@ -62,6 +64,8 @@ List of Libraries
* [jQuery.BBQ](http://benalman.com/projects/jquery-bbq-plugin/) (by [Adam R. Smith](https://github.com/sunetos))
* [jQuery.contextMenu](http://medialize.github.com/jQuery-contextMenu/) (by [Natan Vivo](https://github.com/nvivo/))
* [jQuery.Cookie](https://github.com/carhartl/jquery-cookie) (by [Roy Goode](https://github.com/RoyGoode))
* [jQuery.dynatree](http://code.google.com/p/dynatree/) (by [François de Campredon](https://github.com/fdecampredon))
* [jQuery.Flot](http://www.flotcharts.org/) (by [Matt Burland](https://github.com/burlandm))
* [jQuery.Globalize](https://github.com/jquery/globalize) (by [Boris Yankov](https://github.com/borisyankov))
* [jQuery.jNotify]( http://jnotify.codeplex.com) (by [James Curran](https://github.com/jamescurran/))
* [jQuery.simplePagination](https://github.com/flaviusmatis/simplePagination.js) (by [Natan Vivo](https://github.com/nvivo/))
@ -73,9 +77,13 @@ List of Libraries
* [Knockback](http://kmalakoff.github.com/knockback/) (by [Marcel Binot](https://github.com/docgit))
* [Knockout.js](http://knockoutjs.com/) (by [Boris Yankov](https://github.com/borisyankov))
* [Knockout.Mapping](https://github.com/SteveSanderson/knockout.mapping) (by [Boris Yankov](https://github.com/borisyankov))
* [Knockout.Postbox](https://github.com/rniemeyer/knockout-postbox) (by [Judah Gabriel](https://github.com/JudahGabriel))
* [Knockout.Validation](https://github.com/ericmbarnard/Knockout-Validation) (by [Dan Ludwig](https://github.com/danludwig))
* [Knockout.Viewmodel](http://romanych.github.com/ko.editables/) (by [Oisin Grehan](https://github.com/oising))
* [ko.editables](http://romanych.github.com/ko.editables/) (by [Oisin Grehan](https://github.com/oising))
* [KoLite](https://github.com/CodeSeven/kolite) (by [Boris Yankov](https://github.com/borisyankov))
* [linq.js](http://linqjs.codeplex.com/) (by [Marcin Najder](https://github.com/marcinnajder))
* [Marked](https://github.com/chjj/marked) (by [William Orr](https://github.com/worr))
* [Modernizr](http://modernizr.com/) (by [Boris Yankov](https://github.com/borisyankov))
* [Moment.js](https://github.com/timrwood/moment) (by [Michael Lakerveld](https://github.com/Lakerfield))
* [Mustache.js](https://github.com/janl/mustache.js) (by [Boris Yankov](https://github.com/borisyankov))
@ -93,6 +101,7 @@ List of Libraries
* [Select2](http://ivaynberg.github.com/select2/) (by [Boris Yankov](https://github.com/borisyankov))
* [SignalR](http://www.asp.net/signalr) (by [Boris Yankov](https://github.com/borisyankov))
* [socket.io](http://socket.io) (by [William Orr](https://github.com/worr))
* [SockJS](https://github.com/sockjs/sockjs-client) (by [Emil Ivanov](https://github.com/vladev))
* [SoundJS](http://www.createjs.com/#!/SoundJS) (by [Pedro Ferreira](https://bitbucket.org/drk4))
* [Spin](http://fgnass.github.com/spin.js/) (by [Boris Yankov](https://github.com/borisyankov))
* [Sugar](http://sugarjs.com/) (by [Josh Baldwin](https://github.com/jbaldwin/))
@ -103,4 +112,7 @@ List of Libraries
* [tween.js](https://github.com/sole/tween.js/) (by [Adam R. Smith](https://github.com/sunetos))
* [Ubuntu Unity Web API](https://launchpad.net/libunity-webapps) (by [John Vrbanac](https://github.com/jmvrbanac))
* [Underscore.js](http://underscorejs.org/) (by [Boris Yankov](https://github.com/borisyankov))
* [Underscore.js (Typed)](http://underscorejs.org/) (by [Josh Baldwin](https://github.com/jbaldwin/))
* [Underscore.js (Typed)](http://underscorejs.org/) (by [Josh Baldwin](https://github.com/jbaldwin/))
* [Vimeo](http://developer.vimeo.com/player/js-api) (by [Daz Wilkin](https://github.com/DazWilkin/))
* [WebRTC](http://dev.w3.org/2011/webrtc/editor/webrtc.html) (by [Ken Smith](https://github.com/smithkl42))
* [YouTube](https://developers.google.com/youtube/) (by [Daz Wilkin](https://github.com/DazWilkin/))

View File

@ -1,3 +1,9 @@
// Type definitions for Flot
// Project: http://www.flotcharts.org/
// Definitions by: Matt Burland <https://github.com/burlandm>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../jquery/jquery.d.ts" />
module jquery.flot {

View File

@ -1,4 +1,4 @@
// Type definitions for jquery.dynagrid 1.2
// Type definitions for jquery.dynatree 1.2
// Project: http://code.google.com/p/dynatree/
// Definitions by: https://github.com/fdecampredon
// Definitions: https://github.com/borisyankov/DefinitelyTyped

View File

@ -1,3 +1,9 @@
// Type definitions for knockout-postbox
// Project: https://github.com/rniemeyer/knockout-postbox
// Definitions by: Judah Gabriel <https://github.com/JudahGabriel>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
interface KnockoutPostBox {
subscribe: (topic: string, handler: (value) => void, target?: any) => KnockoutObservableAny;
publish: (topic: string, value?: any) => KnockoutObservableAny;

50
vimeo/froogaloop.d.ts vendored
View File

@ -1,26 +1,26 @@
// Type definitions for YouTube [No version numbering]
// Project: http://developer.vimeo.com/player/js-api
// Definitions by: Daz Wilkin <https://github.com/DazWilkin/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
interface VimeoParams {
name:string;
value:any;
}
interface VimeoPlayerAPI {
(method: string): any;
(method: string, callback: (value: any, player_id: any) =>void ): any;
(method: string, value: any): any;
(method: string, value: VimeoParams[]): any;
}
interface VimeoPlayer {
api: VimeoPlayerAPI;
addEvent(eventName: string, callback: (e: any) =>void ): any;
removeEvent(eventName: string): void;
postMessage(method: string, params:VimeoParams[], target): void;
onMessagReceived(event);
storeCallback(eventName: string, callback, target_id: string);
getCallback(eventName: string, target_id: string);
removeCallback(eventName: string, target_id: string);
getDomainFromUrl(url: string): string;
// Type definitions for Vimeo
// Project: http://developer.vimeo.com/player/js-api
// Definitions by: Daz Wilkin <https://github.com/DazWilkin/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
interface VimeoParams {
name:string;
value:any;
}
interface VimeoPlayerAPI {
(method: string): any;
(method: string, callback: (value: any, player_id: any) =>void ): any;
(method: string, value: any): any;
(method: string, value: VimeoParams[]): any;
}
interface VimeoPlayer {
api: VimeoPlayerAPI;
addEvent(eventName: string, callback: (e: any) =>void ): any;
removeEvent(eventName: string): void;
postMessage(method: string, params:VimeoParams[], target): void;
onMessagReceived(event);
storeCallback(eventName: string, callback, target_id: string);
getCallback(eventName: string, target_id: string);
removeCallback(eventName: string, target_id: string);
getDomainFromUrl(url: string): string;
}

304
youtube/youtube.d.ts vendored
View File

@ -1,152 +1,152 @@
// Type definitions for YouTube [No version numbering]
// Project: https://developers.google.com/youtube/
// Definitions by: Daz Wilkin <https://github.com/DazWilkin/>
// Updated by: Ian Obermiller <http://ianobermiller.com>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
module YT {
interface EventArgs {
target: Player;
data: any;
}
interface EventHandler {
(event: EventArgs): void;
}
export interface Events {
onReady?: EventHandler;
onPlayback?: EventHandler;
onStateChange?: EventHandler;
}
export enum ListType {
search,
user_uploads,
playlist,
}
export interface PlayerVars {
autohide?: number;
autoplay?: number;
cc_load_policy?: any;
color?: string;
controls?: number;
disablekb?: number;
enablejsapi?: number;
end?: number;
fs?: number;
iv_load_policy?: number;
list?: string;
listType?: ListType;
loop?;
modestbranding?: number;
origin?;
playerpiid?: string;
playlist?;
rel?: number;
showinfo?: number;
start?: number;
theme?: string;
}
export interface PlayerOptions {
width?: number;
height?: number;
videoId?: string;
playerVars?: PlayerVars;
events?: Events;
}
interface VideoByIdParams {
videoId: string;
startSeconds?: number;
endSeconds?: number;
suggestedQuality?: string;
}
interface VideoByUrlParams {
mediaContentUrl: string;
startSeconds?: number;
endSeconds?: number;
suggestedQuality?: string;
}
export class Player {
// Constructor
constructor(id: string, playerOptions: PlayerOptions);
// Queueing functions
loadVideoById(videoId: string, startSeconds?: number, suggestedQuality?: string): void;
loadVideoById(VideoByIdParams): void;
cueVideoById(videoId: string, startSeconds?: number, suggestedQuality?: string): void;
cueVideoById(VideoByIdParams): void;
loadVideoByUrl(mediaContentUrl: string, startSeconds?: number, suggestedQuality?: string): void;
loadVideoByUrl(VideoByUrlParams): void;
cueVideoByUrl(mediaContentUrl: string, startSeconds?: number, suggestedQuality?: string): void;
cueVideoByUrl(VideoByUrlParams): void;
// Properties
size;
// Playing
playVideo(): void;
pauseVideo(): void;
stopVideo(): void;
seekTo(seconds:number, allowSeekAhead:bool): void;
clearVideo(): void;
// Playlist
nextVideo(): void;
previousVideo(): void;
playVideoAt(index: number): void;
// Volume
mute(): void;
unMute(): void;
isMuted(): bool;
setVolume(volume: number): void;
getVolume(): number;
// Sizing
setSize(width: number, height: number): any;
// Playback
getPlaybackRate(): number;
setPlaybackRate(suggestedRate:number): void;
getAvailablePlaybackRates(): number[];
// Behavior
setLoop(loopPlaylists: bool): void;
setShuffle(shufflePlaylist: bool): void;
// Status
getVideoLoadedFraction(): number;
getPlayerState(): number;
getCurrentTime(): number;
getVideoStartBytes(): number;
getVideoBytesLoaded(): number;
getVideoBytesTotal(): number;
// Information
getDuration(): number;
getVideoUrl(): string;
getVideoEmbedCode(): string;
// Playlist
getPlaylist(): any[];
getPlaylistIndex(): number;
// Event Listener
addEventListener(event: string, listener: string): void;
}
export enum PlayerState {
BUFFERING,
CUED,
ENDED,
PAUSED,
PLAYING
};
}
// Type definitions for YouTube
// Project: https://developers.google.com/youtube/
// Definitions by: Daz Wilkin <https://github.com/DazWilkin/>
// Updated by: Ian Obermiller <http://ianobermiller.com>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
module YT {
interface EventArgs {
target: Player;
data: any;
}
interface EventHandler {
(event: EventArgs): void;
}
export interface Events {
onReady?: EventHandler;
onPlayback?: EventHandler;
onStateChange?: EventHandler;
}
export enum ListType {
search,
user_uploads,
playlist,
}
export interface PlayerVars {
autohide?: number;
autoplay?: number;
cc_load_policy?: any;
color?: string;
controls?: number;
disablekb?: number;
enablejsapi?: number;
end?: number;
fs?: number;
iv_load_policy?: number;
list?: string;
listType?: ListType;
loop?;
modestbranding?: number;
origin?;
playerpiid?: string;
playlist?;
rel?: number;
showinfo?: number;
start?: number;
theme?: string;
}
export interface PlayerOptions {
width?: number;
height?: number;
videoId?: string;
playerVars?: PlayerVars;
events?: Events;
}
interface VideoByIdParams {
videoId: string;
startSeconds?: number;
endSeconds?: number;
suggestedQuality?: string;
}
interface VideoByUrlParams {
mediaContentUrl: string;
startSeconds?: number;
endSeconds?: number;
suggestedQuality?: string;
}
export class Player {
// Constructor
constructor(id: string, playerOptions: PlayerOptions);
// Queueing functions
loadVideoById(videoId: string, startSeconds?: number, suggestedQuality?: string): void;
loadVideoById(VideoByIdParams): void;
cueVideoById(videoId: string, startSeconds?: number, suggestedQuality?: string): void;
cueVideoById(VideoByIdParams): void;
loadVideoByUrl(mediaContentUrl: string, startSeconds?: number, suggestedQuality?: string): void;
loadVideoByUrl(VideoByUrlParams): void;
cueVideoByUrl(mediaContentUrl: string, startSeconds?: number, suggestedQuality?: string): void;
cueVideoByUrl(VideoByUrlParams): void;
// Properties
size;
// Playing
playVideo(): void;
pauseVideo(): void;
stopVideo(): void;
seekTo(seconds:number, allowSeekAhead:bool): void;
clearVideo(): void;
// Playlist
nextVideo(): void;
previousVideo(): void;
playVideoAt(index: number): void;
// Volume
mute(): void;
unMute(): void;
isMuted(): bool;
setVolume(volume: number): void;
getVolume(): number;
// Sizing
setSize(width: number, height: number): any;
// Playback
getPlaybackRate(): number;
setPlaybackRate(suggestedRate:number): void;
getAvailablePlaybackRates(): number[];
// Behavior
setLoop(loopPlaylists: bool): void;
setShuffle(shufflePlaylist: bool): void;
// Status
getVideoLoadedFraction(): number;
getPlayerState(): number;
getCurrentTime(): number;
getVideoStartBytes(): number;
getVideoBytesLoaded(): number;
getVideoBytesTotal(): number;
// Information
getDuration(): number;
getVideoUrl(): string;
getVideoEmbedCode(): string;
// Playlist
getPlaylist(): any[];
getPlaylistIndex(): number;
// Event Listener
addEventListener(event: string, listener: string): void;
}
export enum PlayerState {
BUFFERING,
CUED,
ENDED,
PAUSED,
PLAYING
};
}