Merge pull request #293 from Diullei/master

I adjusted some files.
This commit is contained in:
Diullei Gomes
2013-02-16 13:02:34 -08:00
9 changed files with 61 additions and 39 deletions

View File

@@ -92,7 +92,7 @@ List of Definitions
* [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))
* [Knockout.Viewmodel](http://coderenaissance.github.com/knockout.viewmodel/) (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))
* [Leaflet](https://github.com/Leaflet/Leaflet) (by [Vladimir](https://github.com/rgripper))
@@ -112,6 +112,7 @@ List of Definitions
* [PouchDB](http://pouchdb.com) (by [Bill Sears](https://github.com/MrBigDog2U/))
* [PreloadJS](http://www.createjs.com/#!/PreloadJS) (by [Pedro Ferreira](https://bitbucket.org/drk4))
* [QUnit](http://qunitjs.com/) (by [Diullei Gomes](https://github.com/Diullei))
* [Restify](https://github.com/mcavage/node-restify) (by [Bret Little](https://github.com/blittle))
* [Rx.js](http://rx.codeplex.com/) (by [gsino](http://www.codeplex.com/site/users/view/gsino))
* [Raphael](http://raphaeljs.com/) (by [CheCoxshall](https://github.com/CheCoxshall))
* [require.js](http://requirejs.org/) (by [Josh Baldwin](https://github.com/jbaldwin/))

View File

@@ -1,9 +1,7 @@
/************************************************
* *
* CasperJS v1.0.0 API *
* http://casperjs.org/api.html *
* *
************************************************/
// Type definitions for CasperJS v1.0.0 API
// Project: http://casperjs.org/
// Definitions by: Jed Hunsaker <https://github.com/jedhunsaker>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../phantomjs/phantomjs.d.ts" />

5
d3/d3.d.ts vendored
View File

@@ -1,3 +1,8 @@
// Type definitions for d3JS
// Project: http://d3js.org/
// Definitions by: TypeScript samples
// Definitions: https://github.com/borisyankov/DefinitelyTyped
interface ID3Selectors {
select: {
(selector: string): ID3Selection;

View File

@@ -1,4 +1,7 @@
// Type definitions for jQuery.transit.js
// Type definitions for jQuery.transit.js 0.9.9
// Project: http://ricostacruz.com/jquery.transit/
// Definitions by: MrBigDog2U <https://github.com/MrBigDog2U>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../jquery/jquery.d.ts"/>

View File

@@ -1,11 +1,16 @@
// Type definitions for Knockout Validation
// Project: https://github.com/ericmbarnard/Knockout-Validation
// Definitions by: Dan Ludwig <https://github.com/danludwig>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../knockouot/knockout.d.ts" />
interface KnockoutValidationGroupingOptions {
interface KnockoutValidationGroupingOptions {
deep?: bool;
observable?: bool;
}
interface KnockoutValidationConfiguration {
interface KnockoutValidationConfiguration {
registerExtenders?: bool;
messagesOnModified?: bool;
messageTemplate?: string;
@@ -19,7 +24,7 @@ interface KnockoutValidationConfiguration {
grouping?: KnockoutValidationGroupingOptions;
}
interface KnockoutValidationUtils {
interface KnockoutValidationUtils {
isArray(o: any): bool;
isObject(o: any): bool;
values(o: any): any[];
@@ -35,31 +40,31 @@ interface KnockoutValidationUtils {
isEmptyVal(val: any): bool;
}
interface KnockoutValidationAsyncCallbackArgs {
interface KnockoutValidationAsyncCallbackArgs {
isValid: bool;
message: string;
}
interface KnockoutValidationAsyncCallback {
interface KnockoutValidationAsyncCallback {
(result: bool): void;
(result: KnockoutValidationAsyncCallbackArgs): void;
}
interface KnockoutValidationRuleDefinition {
interface KnockoutValidationRuleDefinition {
message: string;
validator(value: any, params: any): bool;
}
interface KnockoutValidationAsyncRuleDefinition extends KnockoutValidationRuleDefinition {
interface KnockoutValidationAsyncRuleDefinition extends KnockoutValidationRuleDefinition {
async: bool;
validator(value: any, params: any, callback: KnockoutValidationAsyncCallback): void;
}
interface KnockoutValidationAnonymousRuleDefinition {
interface KnockoutValidationAnonymousRuleDefinition {
validation: KnockoutValidationRuleDefinition;
}
interface KnockoutValidationRuleDefinitions {
interface KnockoutValidationRuleDefinitions {
date: KnockoutValidationRuleDefinition;
dateISO: KnockoutValidationRuleDefinition;
digit: KnockoutValidationRuleDefinition;
@@ -78,30 +83,30 @@ interface KnockoutValidationRuleDefinitions {
unique: KnockoutValidationRuleDefinition;
}
interface KnockoutValidationRule {
interface KnockoutValidationRule {
rule: string;
params: any;
message?: string;
condition?: () => bool;
}
interface KnockoutValidationErrors {
interface KnockoutValidationErrors {
(): string[];
showAllMessages(): void;
showAllMessages(show: bool): void;
}
interface KnockoutValidationGroup {
errors?: KnockoutValidationErrors;
isValid?: () => bool;
isAnyMessageShown?: () => bool;
interface KnockoutValidationGroup {
errors?: KnockoutValidationErrors;
isValid?: () => bool;
isAnyMessageShown?: () => bool;
}
interface KnockoutValidationStatic {
init(options?: KnockoutValidationConfiguration, force?: bool): void;
configure(options: KnockoutValidationConfiguration): void;
reset(): void;
interface KnockoutValidationStatic {
init(options?: KnockoutValidationConfiguration, force?: bool): void;
configure(options: KnockoutValidationConfiguration): void;
reset(): void;
group(obj: any, options?: any): () => string[];
formatMessage(message: string, params: string): string;
@@ -132,8 +137,8 @@ interface KnockoutStatic {
applyBindingsWithValidation(viewModel: any, rootNode?: any, options?: KnockoutValidationConfiguration): void;
}
interface KnockoutSubscribableFunctions {
isValid: KnockoutComputed;
interface KnockoutSubscribableFunctions {
isValid: KnockoutComputed;
isValidating: KnockoutObservableBool;
rules: KnockoutObservableArray;
}

View File

@@ -1,7 +1,9 @@
/// <reference path="../knockout/knockout.d.ts" />
// Type definitions for Knockout Viewmodel 1.1.3
// Project: http://coderenaissance.github.com/knockout.viewmodel/
// Definitions by: Oisin Grehan <https://github.com/oising>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
// build: knockout.viewmodel 1.1.3
// http://coderenaissance.github.com/knockout.viewmodel/
/// <reference path="../knockout/knockout.d.ts" />
interface KnockoutViewModelStatic {
toModel(viewmodel: any): any;

5
marked/marked.d.ts vendored
View File

@@ -1,3 +1,8 @@
// Type definitions for Marked
// Project: https://github.com/chjj/marked
// Definitions by: William Orr <https://github.com/worr>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module "marked" {
export function (src: string, opt?: Options): string;
export function lexer(src: string, opt?: Options): Array;

View File

@@ -1,9 +1,7 @@
/**********************************************************
* *
* PlantomJS v1.8.0 API *
* https://github.com/ariya/phantomjs/wiki/API-Reference *
* *
**********************************************************/
// Type definitions for PlantomJS v1.8.0 API
// Project: https://github.com/ariya/phantomjs/wiki/API-Reference
// Definitions by: Jed Hunsaker <https://github.com/jedhunsaker>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
interface Phantom {

View File

@@ -1,3 +1,8 @@
// Type definitions for node.js REST framework 2.0
// Project: https://github.com/mcavage/node-restify
// Definitions by: Bret Little <https://github.com/blittle>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
interface addressInterface {
port: number;
family: string;