mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
Fix definitions for TS 0.9
This commit is contained in:
2
breeze/breeze-1.0.d.ts
vendored
2
breeze/breeze-1.0.d.ts
vendored
@@ -183,7 +183,7 @@ declare module Breeze {
|
||||
parseDateFromServer(date: any): Date;
|
||||
|
||||
}
|
||||
declare var DataType: DataType;
|
||||
var DataType: DataType;
|
||||
|
||||
class EntityActionSymbol extends BreezeCore.EnumSymbol {
|
||||
}
|
||||
|
||||
3
jquerymobile/jquerymobile.d.ts
vendored
3
jquerymobile/jquerymobile.d.ts
vendored
@@ -291,11 +291,8 @@ interface JQueryMobile extends JQueryMobileOptions {
|
||||
showPageLoadingMsg();
|
||||
hidePageLoadingMsg();
|
||||
loader;
|
||||
loading;
|
||||
loadPage;
|
||||
page;
|
||||
|
||||
silentScroll;
|
||||
touchOverflow;
|
||||
showCategory;
|
||||
path;
|
||||
|
||||
12
jsoneditoronline/jsoneditoronline.d.ts
vendored
12
jsoneditoronline/jsoneditoronline.d.ts
vendored
@@ -12,7 +12,7 @@ interface JSONEditorOptions {
|
||||
search?: bool;
|
||||
}
|
||||
|
||||
class JSONEditorHistory {
|
||||
declare class JSONEditorHistory {
|
||||
constructor(editor: JSONEditor);
|
||||
onChange(): void;
|
||||
add(action: string, params: Object);
|
||||
@@ -40,7 +40,7 @@ interface JSONEditorConstructorParams {
|
||||
value?: any;
|
||||
}
|
||||
|
||||
class JSONEditorNode {
|
||||
declare class JSONEditorNode {
|
||||
constructor(editor: JSONEditor, params: JSONEditorConstructorParams);
|
||||
setParent(parent: JSONEditorNode): void;
|
||||
getParent(): JSONEditorNode;
|
||||
@@ -77,7 +77,7 @@ class JSONEditorNode {
|
||||
getAppend(): HTMLElement;
|
||||
}
|
||||
|
||||
class JSONEditorAppendNode extends JSONEditorNode {
|
||||
declare class JSONEditorAppendNode extends JSONEditorNode {
|
||||
constructor(editor: JSONEditor);
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ interface JSONEditorShowDropDownListParams {
|
||||
callback: (value: any) => void;
|
||||
}
|
||||
|
||||
class JSONEditorSearchBox {
|
||||
declare class JSONEditorSearchBox {
|
||||
constructor(editor: JSONEditor, container: HTMLElement);
|
||||
next(): void;
|
||||
previous(): void;
|
||||
@@ -126,7 +126,7 @@ interface JSONEditorActionParams {
|
||||
newType?: JSONEditorNodeType;
|
||||
}
|
||||
|
||||
class JSONEditor {
|
||||
declare class JSONEditor {
|
||||
constructor(container: HTMLElement, options?: JSONEditorOptions, json?: any);
|
||||
set(json: Object, name?: string): void;
|
||||
setName(name?: string): void;
|
||||
@@ -170,7 +170,7 @@ interface JSONFormatterOptions {
|
||||
indentation?: number;
|
||||
}
|
||||
|
||||
class JSONFormatter {
|
||||
declare class JSONFormatter {
|
||||
constructor(container: HTMLElement, options?: JSONFormatterOptions, json?: any);
|
||||
set(json: Object);
|
||||
get(): Object;
|
||||
|
||||
4
kolite/kolite.d.ts
vendored
4
kolite/kolite.d.ts
vendored
@@ -41,7 +41,7 @@ interface JQuery {
|
||||
// DirtyFlag /////////////////////////////////////////////
|
||||
|
||||
interface DirtyFlag {
|
||||
isDirty: KnockoutComputed;
|
||||
isDirty: KnockoutComputed<boolean>;
|
||||
new (objectToTrack: any, isInitiallyDirty?: bool, hashFunction?: () => any);
|
||||
reset(): void;
|
||||
}
|
||||
@@ -54,7 +54,7 @@ interface KnockoutStatic {
|
||||
// Command /////////////////////////////////////////////
|
||||
|
||||
interface KoliteCommand {
|
||||
canExecute: KnockoutComputed;
|
||||
canExecute: KnockoutComputed<boolean>;
|
||||
execute(...args: any[]): any;
|
||||
}
|
||||
|
||||
|
||||
43
node/node-0.8.8.d.ts
vendored
43
node/node-0.8.8.d.ts
vendored
@@ -12,17 +12,6 @@
|
||||
declare var process: NodeProcess;
|
||||
declare var global: any;
|
||||
|
||||
declare var console: {
|
||||
log(...data: any[]): void;
|
||||
info(...data: any[]): void;
|
||||
error(...data: any[]): void;
|
||||
warn(...data: any[]): void;
|
||||
dir(obj: any): void;
|
||||
timeEnd(label: string): void;
|
||||
trace(label: string): void;
|
||||
assert(expression: any, ...message: string[]): void;
|
||||
}
|
||||
|
||||
declare var __filename: string;
|
||||
declare var __dirname: string;
|
||||
|
||||
@@ -309,7 +298,7 @@ declare module "cluster" {
|
||||
}
|
||||
export interface Worker {
|
||||
id: string;
|
||||
process: child_process;
|
||||
process: child_process.ChildProcess;
|
||||
suicide: bool;
|
||||
send(message: any, sendHandle?: any): void;
|
||||
destroy(): void;
|
||||
@@ -1015,19 +1004,23 @@ declare module "util" {
|
||||
}
|
||||
|
||||
declare module "assert" {
|
||||
export function (booleanValue: bool, message?: string);
|
||||
export function fail(actual: any, expected: any, message: string, operator: string): void;
|
||||
export function assert(value: any, message: string): void;
|
||||
export function ok(value: any, message?: string): void;
|
||||
export function equal(actual: any, expected: any, message?: string): void;
|
||||
export function notEqual(actual: any, expected: any, message?: string): void;
|
||||
export function deepEqual(actual: any, expected: any, message?: string): void;
|
||||
export function notDeepEqual(acutal: any, expected: any, message?: string): void;
|
||||
export function strictEqual(actual: any, expected: any, message?: string): void;
|
||||
export function notStrictEqual(actual: any, expected: any, message?: string): void;
|
||||
export function throws(block: any, error?: any, messsage?: string): void;
|
||||
export function doesNotThrow(block: any, error?: any, messsage?: string): void;
|
||||
export function ifError(value: any): void;
|
||||
function internal(booleanValue: boolean, message?: string): void;
|
||||
module internal {
|
||||
export function fail(actual: any, expected: any, message: string, operator: string): void;
|
||||
export function assert(value: any, message: string): void;
|
||||
export function ok(value: any, message?: string): void;
|
||||
export function equal(actual: any, expected: any, message?: string): void;
|
||||
export function notEqual(actual: any, expected: any, message?: string): void;
|
||||
export function deepEqual(actual: any, expected: any, message?: string): void;
|
||||
export function notDeepEqual(acutal: any, expected: any, message?: string): void;
|
||||
export function strictEqual(actual: any, expected: any, message?: string): void;
|
||||
export function notStrictEqual(actual: any, expected: any, message?: string): void;
|
||||
export function throws(block: any, error?: any, messsage?: string): void;
|
||||
export function doesNotThrow(block: any, error?: any, messsage?: string): void;
|
||||
export function ifError(value: any): void;
|
||||
}
|
||||
|
||||
export = internal;
|
||||
}
|
||||
|
||||
declare module "tty" {
|
||||
|
||||
4
nodemailer/nodemailer.d.ts
vendored
4
nodemailer/nodemailer.d.ts
vendored
@@ -4,7 +4,7 @@
|
||||
// Definitions by: Vincent Bortone <https://github.com/vbortone/>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
class Transport {
|
||||
declare class Transport {
|
||||
static transports: {
|
||||
SMTP: Transport;
|
||||
SES: Transport;
|
||||
@@ -47,7 +47,7 @@ interface DKIMOptions{
|
||||
privateKey: any;
|
||||
}
|
||||
|
||||
class XOAuthGenerator {
|
||||
declare class XOAuthGenerator {
|
||||
constructor(options: XOAuthGeneratorOptions);
|
||||
generate(callback: () => any): string;
|
||||
}
|
||||
|
||||
2
pouchDB/pouch.d.ts
vendored
2
pouchDB/pouch.d.ts
vendored
@@ -215,7 +215,7 @@ interface Pouch extends PouchApi {
|
||||
destroy(name: string, callback: (err: PouchError) => void): void;
|
||||
}
|
||||
|
||||
var Pouch: Pouch;
|
||||
declare var Pouch: Pouch;
|
||||
//
|
||||
// emit is the function that the PouchFilter.map function should call in order to add a particular item to
|
||||
// a filter view.
|
||||
|
||||
2
preloadjs/preloadjs.d.ts
vendored
2
preloadjs/preloadjs.d.ts
vendored
@@ -10,7 +10,7 @@
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
module createjs {
|
||||
declare module createjs {
|
||||
export class AbstractLoader {
|
||||
// properties
|
||||
canceled: bool;
|
||||
|
||||
2
pubsubjs/pubsub.d.ts
vendored
2
pubsubjs/pubsub.d.ts
vendored
@@ -1,6 +1,6 @@
|
||||
// Type definitions for PubSubJS 1.3.5
|
||||
|
||||
module PubSubJS {
|
||||
declare module PubSubJS {
|
||||
interface Base extends Publish, Subscribe, Unsubscribe {
|
||||
version: string;
|
||||
name: string;
|
||||
|
||||
2
routie/routie.d.ts
vendored
2
routie/routie.d.ts
vendored
@@ -12,4 +12,4 @@ interface Route {
|
||||
toURL(params: any): string;
|
||||
}
|
||||
|
||||
function routie(path: string, fn: Function): void;
|
||||
declare function routie(path: string, fn: Function): void;
|
||||
2
swipeview/swipeview.d.ts
vendored
2
swipeview/swipeview.d.ts
vendored
@@ -20,7 +20,7 @@ interface PageHTMLElement extends HTMLElement {
|
||||
dataset: any;
|
||||
}
|
||||
|
||||
class SwipeView {
|
||||
declare class SwipeView {
|
||||
|
||||
masterPages: PageHTMLElement[];
|
||||
currentMasterPage: number;
|
||||
|
||||
4
tween.js/tween.js.d.ts
vendored
4
tween.js/tween.js.d.ts
vendored
@@ -3,7 +3,7 @@
|
||||
// Definitions by: https://github.com/sunetos
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
module TWEEN {
|
||||
declare module TWEEN {
|
||||
export var REVISION: string;
|
||||
export function getAll(): Tween[];
|
||||
export function removeAll(): void;
|
||||
@@ -24,7 +24,7 @@ module TWEEN {
|
||||
onUpdate(callback:Function): Tween;
|
||||
onComplete(callback:Function): Tween;
|
||||
update(time:number): bool;
|
||||
};
|
||||
}
|
||||
export var Easing: TweenEasing;
|
||||
export var Interpolation: TweenInterpolation;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user