Skip to content

Commit 85bdadd

Browse files
committed
- Some updates to 0.9.1
1 parent 25cc142 commit 85bdadd

13 files changed

+1114
-275
lines changed

async.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
declare module "async" {
44
export function each(values: any[], iterator: (item: any, callback: Function) => void, callback: (err: Error) => void): void;
55
export function map(values: any[], generator: (err: Error, result: any) => void, callback: (err: Error, results: any[]) => void): void;
6-
export function filter(values: any[], generator: (err: Error, result: bool) => void, callback: (err: Error, results: any[]) => void): void;
6+
export function filter(values: any[], generator: (err: Error, result: boolean) => void, callback: (err: Error, results: any[]) => void): void;
77
export function parallel(funcs: any[], callback: (err, result) => void);
88
export function parallel(funcs: any, callback: (err, result : any) => void);
99
//export function series(funcs: ((done: () => void) => void)[]);

atpl.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module "atpl" {
1+
declare module "atpl" {
22
export function compile(templateString, options);
33
export function __express(filename, options, callback);
44

express-useragent.d.ts

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/// <reference path="node.d.ts" />
2+
/// <reference path="express3.d.ts" />
3+
4+
declare module "express3" {
5+
interface UserAgent {
6+
isMobile: boolean;
7+
isDesktop: boolean;
8+
Browser: string;
9+
Version: string;
10+
OS: string;
11+
Platform: string;
12+
source: string;
13+
}
14+
15+
interface Request {
16+
useragent: UserAgent;
17+
}
18+
}
19+
20+
declare module "express-useragent" {
21+
import express3 = require('express3');
22+
23+
export function express(): (req: express3.Request, res: express3.Response, next?: Function) => void;
24+
}

imagemagick.d.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/// <reference path="node.d.ts" />
22

33
declare module "imagemagick" {
4-
import child_process = module("child_process");
4+
import child_process = require("child_process");
55

66
interface _identify {
77
(path: string, callback: (err: Error, features: Features) => void): child_process.ChildProcess;
@@ -39,11 +39,11 @@ declare module "imagemagick" {
3939
dstPath?: string;//: null,
4040
quality?: number;//: 0.8,
4141
format?: string;//: 'jpg',
42-
progressive?: bool;//: false,
42+
progressive?: boolean;//: false,
4343
colorspace?;//: null,
4444
width?: number;//: 0,
4545
height?: number;//: 0,
46-
strip?: bool;//: true,
46+
strip?: boolean;//: true,
4747
filter?: string;//: 'Lagrange',
4848
sharpening?: number;//: 0.2,
4949
customArgs?: any[];//: [],

0 commit comments

Comments
 (0)