{
}
/**
@@ -389,22 +389,22 @@ export interface CheerioWrapper extends CommonWrapper
{
* @param node
* @param [options]
*/
-declare export function shallow
(node: ReactElement
, options?: any): ShallowWrapper
;
+export declare function shallow
(node: ReactElement
, options?: any): ShallowWrapper
;
/**
* Mounts and renders a react component into the document and provides a testing wrapper around it.
* @param node
* @param [options]
*/
-declare export function mount
(node: ReactElement
, options?: any): ReactWrapper
;
+export declare function mount
(node: ReactElement
, options?: any): ReactWrapper
;
/**
* Render react components to static HTML and analyze the resulting HTML structure.
* @param node
* @param [options]
*/
-declare export function render
(node: ReactElement
, options?: any): CheerioWrapper
;
+export declare function render
(node: ReactElement
, options?: any): CheerioWrapper
;
-declare export function describeWithDOM(description: String, fn: Function): void;
+export declare function describeWithDOM(description: String, fn: Function): void;
-declare export function spyLifecycle(component: typeof Component): void;
+export declare function spyLifecycle(component: typeof Component): void;
diff --git a/event-stream/event-stream.d.ts b/event-stream/event-stream.d.ts
index e53066e16f..9ed12da46f 100644
--- a/event-stream/event-stream.d.ts
+++ b/event-stream/event-stream.d.ts
@@ -13,27 +13,27 @@ import * as stream from 'stream';
*
* @param asyncFunction
*/
-declare export function map(asyncFunction: Function): stream.Stream;
+export declare function map(asyncFunction: Function): stream.Stream;
/**
* Same as map, but the callback is called synchronously. Based on es.through
* @param syncFunction
*/
-declare export function mapSync(syncFunction: Function): stream.Stream;
+export declare function mapSync(syncFunction: Function): stream.Stream;
/**
* Break up a stream and reassemble it so that each line is a chunk. matcher may be a String, or a RegExp
*
* @param matcher
*/
-declare export function split(matcher: string | RegExp): stream.Stream;
+export declare function split(matcher: string | RegExp): stream.Stream;
/**
* Create a through stream that emits separator between each chunk, just like Array#join
*
* @param separator
*/
-declare export function join(separator: string): stream.Stream;
+export declare function join(separator: string): stream.Stream;
/**
* Merges streams into one and returns it. Incoming data will be emitted as soon it comes into - no ordering will be applied
@@ -42,7 +42,7 @@ declare export function join(separator: string): stream.Stream;
*
* @param stream
*/
-declare export function concat(...stream: stream.Stream[]): stream.Stream;
+export declare function concat(...stream: stream.Stream[]): stream.Stream;
/**
* Merges streams into one and returns it. Incoming data will be emitted as soon it comes into - no ordering will be applied
@@ -51,7 +51,7 @@ declare export function concat(...stream: stream.Stream[]): stream.Stream;
*
* @param stream
*/
-declare export function concat(streamArray: stream.Stream[]): stream.Stream;
+export declare function concat(streamArray: stream.Stream[]): stream.Stream;
/**
* Merges streams into one and returns it. Incoming data will be emitted as soon it comes into - no ordering will be applied
@@ -60,7 +60,7 @@ declare export function concat(streamArray: stream.Stream[]): stream.Stream;
*
* @param stream
*/
-declare export function merge(...stream: stream.Stream[]): stream.Stream;
+export declare function merge(...stream: stream.Stream[]): stream.Stream;
/**
* Merges streams into one and returns it. Incoming data will be emitted as soon it comes into - no ordering will be applied
@@ -69,52 +69,52 @@ declare export function merge(...stream: stream.Stream[]): stream.Stream;
*
* @param stream
*/
-declare export function merge(streamArray: stream.Stream[]): stream.Stream;
+export declare function merge(streamArray: stream.Stream[]): stream.Stream;
/**
* Replace all occurrences of from with to
* @param from
* @param to
*/
-declare export function replace(from: string | RegExp, to: string | RegExp): stream.Stream;
+export declare function replace(from: string | RegExp, to: string | RegExp): stream.Stream;
/**
* Convenience function for parsing JSON chunks. For newline separated JSON, use with es.split.
* By default it logs parsing errors by console.error; for another behaviour, transforms created by es.parse({error: true})
* will emit error events for exceptions thrown from JSON.parse, unmodified.
*/
-declare export function parse(): any;
+export declare function parse(): any;
/**
* convert javascript objects into lines of text. The text will have whitespace escaped and have a \n appended, so it will be compatible with es.parse
*/
-declare export function stringify(): stream.Stream;
+export declare function stringify(): stream.Stream;
/**
* create a readable stream (that respects pause) from an async function.
*
* @param asyncFunction
*/
-declare export function readable(asyncFunction: Function): stream.Stream;
+export declare function readable(asyncFunction: Function): stream.Stream;
/**
* Create a readable stream from an Array.
*
* @param array
*/
-declare export function readArray(array: any[]): stream.Stream;
+export declare function readArray(array: any[]): stream.Stream;
/**
* create a writeable stream from a callback
*
* @param callback
*/
-declare export function writeArray(callback: Function): stream.Stream;
+export declare function writeArray(callback: Function): stream.Stream;
/**
* A stream that buffers all chunks when paused
*/
-declare export function pause(): stream.Stream | void;
+export declare function pause(): stream.Stream | void;
/**
* Takes a writable stream and a readable stream and makes them appear as a readable writable stream.
@@ -122,14 +122,14 @@ declare export function pause(): stream.Stream | void;
* @param writeStream
* @param readStream
*/
-declare export function duplex(writeStream: stream.Writable, readStream: stream.Readable): stream.Stream;
+export declare function duplex(writeStream: stream.Writable, readStream: stream.Readable): stream.Stream;
/**
* Create a through stream from a child process
*
* @param child_process
*/
-declare export function child(child_process: any): stream.Stream;
+export declare function child(child_process: any): stream.Stream;
/**
* waits for stream to emit 'end'. joins chunks of a stream into a single string or buffer.
@@ -137,4 +137,4 @@ declare export function child(child_process: any): stream.Stream;
*
* @param callback
*/
-declare export function wait(callback: Function): stream.Stream;
+export declare function wait(callback: Function): stream.Stream;
diff --git a/expect/expect.d.ts b/expect/expect.d.ts
index 3bb623566a..f2c25f6225 100644
--- a/expect/expect.d.ts
+++ b/expect/expect.d.ts
@@ -4,7 +4,7 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-declare export class Expectation {
+export declare class Expectation {
constructor(actual: any);
toExist(message?: string): Expectation;
toBeTruthy(message?: string): Expectation;
@@ -60,11 +60,11 @@ export interface Spy {
declare function expect(actual: any): Expectation;
-declare export function createSpy(fn?: Function, restore?: Function): Spy;
-declare export function spyOn(object: Object, methodName: string): Spy;
-declare export function isSpy(object: any): Boolean;
-declare export function restoreSpies(): void;
-declare export function assert(condition: any, messageFormat: string, ...extraArgs: Array): void;
-declare export function extend(extension: Extension): void;
+export declare function createSpy(fn?: Function, restore?: Function): Spy;
+export declare function spyOn(object: Object, methodName: string): Spy;
+export declare function isSpy(object: any): Boolean;
+export declare function restoreSpies(): void;
+export declare function assert(condition: any, messageFormat: string, ...extraArgs: Array): void;
+export declare function extend(extension: Extension): void;
export default expect;
diff --git a/express-brute-memcached/express-brute-memcached.d.ts b/express-brute-memcached/express-brute-memcached.d.ts
index 57a9fdb54e..3434787e82 100644
--- a/express-brute-memcached/express-brute-memcached.d.ts
+++ b/express-brute-memcached/express-brute-memcached.d.ts
@@ -102,7 +102,7 @@ interface MemcachedStoreOptions {
* @summary A memcached store adapter.
* @class
*/
-declare export default class MemcachedStore {
+export declare default class MemcachedStore {
/**
* @summary Constructor.
* @constructor
diff --git a/express-graphql/express-graphql.d.ts b/express-graphql/express-graphql.d.ts
index 87f1f4bb53..71934860c5 100644
--- a/express-graphql/express-graphql.d.ts
+++ b/express-graphql/express-graphql.d.ts
@@ -48,4 +48,4 @@ type Middleware = (request: Request, response: Response) => void;
* Middleware for express; takes an options object or function as input to
* configure behavior, and returns an express middleware.
*/
-declare export default function graphqlHTTP(options: Options): Middleware;
+export declare default function graphqlHTTP(options: Options): Middleware;
diff --git a/express-openapi/express-openapi.d.ts b/express-openapi/express-openapi.d.ts
index 12055fd114..6d57d87a66 100644
--- a/express-openapi/express-openapi.d.ts
+++ b/express-openapi/express-openapi.d.ts
@@ -32,13 +32,13 @@
import express = require('express');
-declare export function initialize(args: Args): InitializedApi;
+export declare function initialize(args: Args): InitializedApi;
export interface InitializedApi {
apiDoc: OpenApi.ApiDefinition;
}
-declare export module OpenApi {
+export declare module OpenApi {
export interface ApiDefinition {
swagger: string
info: InfoObject
diff --git a/eyes/eyes.d.ts b/eyes/eyes.d.ts
index 7c61fbdb94..f7866d056c 100644
--- a/eyes/eyes.d.ts
+++ b/eyes/eyes.d.ts
@@ -8,8 +8,8 @@
import stream = require('stream');
-declare export function inspector(options?: EyesOptions): InspectorFunction;
-declare export function inspect(thing: any, label?: string): void;
+export declare function inspector(options?: EyesOptions): InspectorFunction;
+export declare function inspect(thing: any, label?: string): void;
export interface InspectorFunction {
(thing: any, label?: string): string;
diff --git a/fast-stats/fast-stats.d.ts b/fast-stats/fast-stats.d.ts
index 65a53d1ad0..d1c4ae9620 100644
--- a/fast-stats/fast-stats.d.ts
+++ b/fast-stats/fast-stats.d.ts
@@ -67,7 +67,7 @@ export interface Bucket {
* Additionally, some methods can be calculated quickly as data is inserted, thereby reducing the number of loops required to run through the data during processing.
* Fast stats maintains a running cache of several summary values as data is inserted making final calculation very fast. It trades off a small amount of additional memory usage for a large reduction in execution time.
*/
-declare export class Stats {
+export declare class Stats {
constructor(opts?: StatsOpts);
/**
diff --git a/fbemitter/fbemitter.d.ts b/fbemitter/fbemitter.d.ts
index 79904d12cc..37094797c7 100644
--- a/fbemitter/fbemitter.d.ts
+++ b/fbemitter/fbemitter.d.ts
@@ -5,7 +5,7 @@
-declare export class EventSubscription {
+export declare class EventSubscription {
listener: Function;
context: any;
@@ -17,7 +17,7 @@ declare export class EventSubscription {
}
-declare export class EventEmitter {
+export declare class EventEmitter {
constructor();
diff --git a/field/field.d.ts b/field/field.d.ts
index 3990dff5b0..d49da260b0 100644
--- a/field/field.d.ts
+++ b/field/field.d.ts
@@ -4,5 +4,5 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-declare export function get(topObj: any, fields: string): any;
-declare export function set(topObj: any, fields: string, value: any): any;
+export declare function get(topObj: any, fields: string): any;
+export declare function set(topObj: any, fields: string, value: any): any;
diff --git a/flux-standard-action/flux-standard-action.d.ts b/flux-standard-action/flux-standard-action.d.ts
index a73c4803a0..d5393e0ace 100644
--- a/flux-standard-action/flux-standard-action.d.ts
+++ b/flux-standard-action/flux-standard-action.d.ts
@@ -24,6 +24,6 @@ export interface TypedMeta {
meta: T
}
-declare export function isFSA(action: any): boolean;
+export declare function isFSA(action: any): boolean;
-declare export function isError(action: any): boolean;
+export declare function isError(action: any): boolean;
diff --git a/form-data/form-data.d.ts b/form-data/form-data.d.ts
index a2662ccb8e..0aa5ff33ad 100644
--- a/form-data/form-data.d.ts
+++ b/form-data/form-data.d.ts
@@ -6,7 +6,7 @@
// Imported from: https://github.com/soywiz/typescript-node-definitions/form-data.d.ts
-declare export class FormData {
+export declare class FormData {
append(key: string, value: any, options?: any): FormData;
getHeaders(): Object;
// TODO expand pipe
diff --git a/formidable/formidable.d.ts b/formidable/formidable.d.ts
index f48311811a..83d8e0de46 100644
--- a/formidable/formidable.d.ts
+++ b/formidable/formidable.d.ts
@@ -10,7 +10,7 @@ import http = require("http");
import stream = require("stream");
import events = require("events");
-declare export class IncomingForm extends events.EventEmitter {
+export declare class IncomingForm extends events.EventEmitter {
encoding: string;
uploadDir: string;
keepExtensions: boolean;
diff --git a/fs-ext/fs-ext.d.ts b/fs-ext/fs-ext.d.ts
index 423ca497f7..1ca623f7ec 100644
--- a/fs-ext/fs-ext.d.ts
+++ b/fs-ext/fs-ext.d.ts
@@ -13,14 +13,14 @@ export * from "fs";
* @param fd File Descriptor
* @param flags Flags can be 'sh', 'ex', 'shnb', 'exnb', 'un' and correspond to the various LOCK_SH, LOCK_EX, LOCK_SH|LOCK_NB, etc.
**/
-declare export function flock(fd: number, flags: string, callback: (err: Error) => void): void;
+export declare function flock(fd: number, flags: string, callback: (err: Error) => void): void;
/**
* Synchronous flock(2). Throws an exception on error.
* @param fd File Descriptor
* @param flags Flags can be 'sh', 'ex', 'shnb', 'exnb', 'un' and correspond to the various LOCK_SH, LOCK_EX, LOCK_SH|LOCK_NB, etc.
**/
-declare export function flockSync(fd: number, flags: string): void;
+export declare function flockSync(fd: number, flags: string): void;
/**
* Asynchronous fcntl(2).
@@ -29,7 +29,7 @@ declare export function flockSync(fd: number, flags: string): void;
* Requiring this module adds FD_CLOEXEC to the constants module, for use with F_SETFD.
* @param arg arg
**/
-declare export function fcntl(fd: number, cmd: string, arg: number, callback: (err: Error, result: number) => void): void;
+export declare function fcntl(fd: number, cmd: string, arg: number, callback: (err: Error, result: number) => void): void;
/**
* Asynchronous fcntl(2).
@@ -37,7 +37,7 @@ declare export function fcntl(fd: number, cmd: string, arg: number, callback: (e
* @param cmd The supported commands are: 'getfd' ( F_GETFD ) , 'setfd' ( F_SETFD )
* Requiring this module adds FD_CLOEXEC to the constants module, for use with F_SETFD.
**/
-declare export function fcntl(fd: number, cmd: string, callback: (err: Error, result: number) => void): void;
+export declare function fcntl(fd: number, cmd: string, callback: (err: Error, result: number) => void): void;
/**
* Synchronous fcntl(2). Throws an exception on error.
@@ -47,7 +47,7 @@ declare export function fcntl(fd: number, cmd: string, callback: (err: Error, re
* @param arg arg
* @return Returns flags
**/
-declare export function fcntlSync(fd: number, cmd: string, arg?: number): number;
+export declare function fcntlSync(fd: number, cmd: string, arg?: number): number;
/**
* Asynchronous lseek(2).
@@ -58,7 +58,7 @@ declare export function fcntlSync(fd: number, cmd: string, arg?: number): number
* position to the current position plus offset bytes (can be negative), or 2 (SEEK_END) to set to the end
* of the file plus offset bytes (usually negative or zero to seek to the end of the file).
**/
-declare export function seek(fd: number, offset: number, whence: number, callback: (err: Error, currFilePos: number) => void): void;
+export declare function seek(fd: number, offset: number, whence: number, callback: (err: Error, currFilePos: number) => void): void;
/**
* Synchronous lseek(2). Throws an exception on error. Returns current file position.
@@ -70,7 +70,7 @@ declare export function seek(fd: number, offset: number, whence: number, callbac
* of the file plus offset bytes (usually negative or zero to seek to the end of the file).
* @returns Returns current file position.
**/
-declare export function seekSync(fd: number, offset: number, whence: number): number;
+export declare function seekSync(fd: number, offset: number, whence: number): number;
/**
* Asynchronous utime(2).
@@ -84,7 +84,7 @@ declare export function seekSync(fd: number, offset: number, whence: number): nu
* so to use the 'now' value with fs.utime() you would have to divide by 1000 first, e.g. Date.now()/1000
* Just like for utime(2), the absence of the atime and mtime means 'now'.
**/
-declare export function utime(path: string, atime: number, mtime: number, callback: (err: Error) => void): void;
+export declare function utime(path: string, atime: number, mtime: number, callback: (err: Error) => void): void;
/**
* Synchronous version of utime(). Throws an exception on error.
@@ -98,4 +98,4 @@ declare export function utime(path: string, atime: number, mtime: number, callba
* so to use the 'now' value with fs.utime() you would have to divide by 1000 first, e.g. Date.now()/1000
* Just like for utime(2), the absence of the atime and mtime means 'now'.
**/
-declare export function utimeSync(path: string, atime: number, mtime: number): void;
+export declare function utimeSync(path: string, atime: number, mtime: number): void;
diff --git a/fs-extra-promise/fs-extra-promise.d.ts b/fs-extra-promise/fs-extra-promise.d.ts
index 3d56401301..a89e7fea06 100644
--- a/fs-extra-promise/fs-extra-promise.d.ts
+++ b/fs-extra-promise/fs-extra-promise.d.ts
@@ -39,135 +39,135 @@ export interface FSWatcher {
close(): void;
}
-declare export class ReadStream extends stream.Readable { }
-declare export class WriteStream extends stream.Writable { }
+export declare class ReadStream extends stream.Readable { }
+export declare class WriteStream extends stream.Writable { }
//extended methods
-declare export function copy(src: string, dest: string, callback?: (err: Error) => void): void;
-declare export function copy(src: string, dest: string, filter: (src: string) => boolean, callback?: (err: Error) => void): void;
+export declare function copy(src: string, dest: string, callback?: (err: Error) => void): void;
+export declare function copy(src: string, dest: string, filter: (src: string) => boolean, callback?: (err: Error) => void): void;
-declare export function copySync(src: string, dest: string): void;
-declare export function copySync(src: string, dest: string, filter: (src: string) => boolean): void;
+export declare function copySync(src: string, dest: string): void;
+export declare function copySync(src: string, dest: string, filter: (src: string) => boolean): void;
-declare export function createFile(file: string, callback?: (err: Error) => void): void;
-declare export function createFileSync(file: string): void;
+export declare function createFile(file: string, callback?: (err: Error) => void): void;
+export declare function createFileSync(file: string): void;
-declare export function mkdirs(dir: string, callback?: (err: Error) => void): void;
-declare export function mkdirp(dir: string, callback?: (err: Error) => void): void;
-declare export function mkdirsSync(dir: string): void;
-declare export function mkdirpSync(dir: string): void;
+export declare function mkdirs(dir: string, callback?: (err: Error) => void): void;
+export declare function mkdirp(dir: string, callback?: (err: Error) => void): void;
+export declare function mkdirsSync(dir: string): void;
+export declare function mkdirpSync(dir: string): void;
-declare export function outputFile(file: string, data: any, callback?: (err: Error) => void): void;
-declare export function outputFileSync(file: string, data: any): void;
+export declare function outputFile(file: string, data: any, callback?: (err: Error) => void): void;
+export declare function outputFileSync(file: string, data: any): void;
-declare export function outputJson(file: string, data: any, callback?: (err: Error) => void): void;
-declare export function outputJSON(file: string, data: any, callback?: (err: Error) => void): void;
-declare export function outputJsonSync(file: string, data: any): void;
-declare export function outputJSONSync(file: string, data: any): void;
+export declare function outputJson(file: string, data: any, callback?: (err: Error) => void): void;
+export declare function outputJSON(file: string, data: any, callback?: (err: Error) => void): void;
+export declare function outputJsonSync(file: string, data: any): void;
+export declare function outputJSONSync(file: string, data: any): void;
-declare export function readJson(file: string, callback?: (err: Error) => void): void;
-declare export function readJson(file: string, options?: OpenOptions, callback?: (err: Error) => void): void;
-declare export function readJSON(file: string, callback?: (err: Error) => void): void;
-declare export function readJSON(file: string, options?: OpenOptions, callback?: (err: Error) => void): void;
+export declare function readJson(file: string, callback?: (err: Error) => void): void;
+export declare function readJson(file: string, options?: OpenOptions, callback?: (err: Error) => void): void;
+export declare function readJSON(file: string, callback?: (err: Error) => void): void;
+export declare function readJSON(file: string, options?: OpenOptions, callback?: (err: Error) => void): void;
-declare export function readJsonSync(file: string, options?: OpenOptions): void;
-declare export function readJSONSync(file: string, options?: OpenOptions): void;
+export declare function readJsonSync(file: string, options?: OpenOptions): void;
+export declare function readJSONSync(file: string, options?: OpenOptions): void;
-declare export function remove(dir: string, callback?: (err: Error) => void): void;
-declare export function removeSync(dir: string): void;
+export declare function remove(dir: string, callback?: (err: Error) => void): void;
+export declare function removeSync(dir: string): void;
// export function delete(dir: string, callback?: (err: Error) => void): void;
// export function deleteSync(dir: string): void;
-declare export function writeJson(file: string, object: any, callback?: (err: Error) => void): void;
-declare export function writeJson(file: string, object: any, options?: OpenOptions, callback?: (err: Error) => void): void;
-declare export function writeJSON(file: string, object: any, callback?: (err: Error) => void): void;
-declare export function writeJSON(file: string, object: any, options?: OpenOptions, callback?: (err: Error) => void): void;
+export declare function writeJson(file: string, object: any, callback?: (err: Error) => void): void;
+export declare function writeJson(file: string, object: any, options?: OpenOptions, callback?: (err: Error) => void): void;
+export declare function writeJSON(file: string, object: any, callback?: (err: Error) => void): void;
+export declare function writeJSON(file: string, object: any, options?: OpenOptions, callback?: (err: Error) => void): void;
-declare export function writeJsonSync(file: string, object: any, options?: OpenOptions): void;
-declare export function writeJSONSync(file: string, object: any, options?: OpenOptions): void;
+export declare function writeJsonSync(file: string, object: any, options?: OpenOptions): void;
+export declare function writeJSONSync(file: string, object: any, options?: OpenOptions): void;
-declare export function rename(oldPath: string, newPath: string, callback?: (err: Error) => void): void;
-declare export function renameSync(oldPath: string, newPath: string): void;
-declare export function truncate(fd: number, len: number, callback?: (err: Error) => void): void;
-declare export function truncateSync(fd: number, len: number): void;
-declare export function chown(path: string, uid: number, gid: number, callback?: (err: Error) => void): void;
-declare export function chownSync(path: string, uid: number, gid: number): void;
-declare export function fchown(fd: number, uid: number, gid: number, callback?: (err: Error) => void): void;
-declare export function fchownSync(fd: number, uid: number, gid: number): void;
-declare export function lchown(path: string, uid: number, gid: number, callback?: (err: Error) => void): void;
-declare export function lchownSync(path: string, uid: number, gid: number): void;
-declare export function chmod(path: string, mode: number, callback?: (err: Error) => void): void;
-declare export function chmod(path: string, mode: string, callback?: (err: Error) => void): void;
-declare export function chmodSync(path: string, mode: number): void;
-declare export function chmodSync(path: string, mode: string): void;
-declare export function fchmod(fd: number, mode: number, callback?: (err: Error) => void): void;
-declare export function fchmod(fd: number, mode: string, callback?: (err: Error) => void): void;
-declare export function fchmodSync(fd: number, mode: number): void;
-declare export function fchmodSync(fd: number, mode: string): void;
-declare export function lchmod(path: string, mode: string, callback?: (err: Error) => void): void;
-declare export function lchmod(path: string, mode: number, callback?: (err: Error) => void): void;
-declare export function lchmodSync(path: string, mode: number): void;
-declare export function lchmodSync(path: string, mode: string): void;
-declare export function stat(path: string, callback?: (err: Error, stats: Stats) => void): void;
-declare export function lstat(path: string, callback?: (err: Error, stats: Stats) => void): void;
-declare export function fstat(fd: number, callback?: (err: Error, stats: Stats) => void): void;
-declare export function statSync(path: string): Stats;
-declare export function lstatSync(path: string): Stats;
-declare export function fstatSync(fd: number): Stats;
-declare export function link(srcpath: string, dstpath: string, callback?: (err: Error) => void): void;
-declare export function linkSync(srcpath: string, dstpath: string): void;
-declare export function symlink(srcpath: string, dstpath: string, type?: string, callback?: (err: Error) => void): void;
-declare export function symlinkSync(srcpath: string, dstpath: string, type?: string): void;
-declare export function readlink(path: string, callback?: (err: Error, linkString: string) => void): void;
-declare export function realpath(path: string, callback?: (err: Error, resolvedPath: string) => void): void;
-declare export function realpath(path: string, cache: string, callback: (err: Error, resolvedPath: string) => void): void;
-declare export function realpathSync(path: string, cache?: boolean): string;
-declare export function unlink(path: string, callback?: (err: Error) => void): void;
-declare export function unlinkSync(path: string): void;
-declare export function rmdir(path: string, callback?: (err: Error) => void): void;
-declare export function rmdirSync(path: string): void;
-declare export function mkdir(path: string, mode?: number, callback?: (err: Error) => void): void;
-declare export function mkdir(path: string, mode?: string, callback?: (err: Error) => void): void;
-declare export function mkdirSync(path: string, mode?: number): void;
-declare export function mkdirSync(path: string, mode?: string): void;
-declare export function readdir(path: string, callback?: (err: Error, files: string[]) => void): void;
-declare export function readdirSync(path: string): string[];
-declare export function close(fd: number, callback?: (err: Error) => void): void;
-declare export function closeSync(fd: number): void;
-declare export function open(path: string, flags: string, mode?: string, callback?: (err: Error, fs: number) => void): void;
-declare export function openSync(path: string, flags: string, mode?: string): number;
-declare export function utimes(path: string, atime: number, mtime: number, callback?: (err: Error) => void): void;
-declare export function utimesSync(path: string, atime: number, mtime: number): void;
-declare export function futimes(fd: number, atime: number, mtime: number, callback?: (err: Error) => void): void;
-declare export function futimesSync(fd: number, atime: number, mtime: number): void;
-declare export function fsync(fd: number, callback?: (err: Error) => void): void;
-declare export function fsyncSync(fd: number): void;
-declare export function write(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number, callback?: (err: Error, written: number, buffer: NodeBuffer) => void): void;
-declare export function writeSync(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number): number;
-declare export function read(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number, callback?: (err: Error, bytesRead: number, buffer: NodeBuffer) => void): void;
-declare export function readSync(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number): number;
-declare export function readFile(filename: string, encoding: string, callback: (err: Error, data: string) => void): void;
-declare export function readFile(filename: string, options: OpenOptions, callback: (err: Error, data: string) => void): void;
-declare export function readFile(filename: string, callback: (err: Error, data: NodeBuffer) => void): void;
-declare export function readFileSync(filename: string): NodeBuffer;
-declare export function readFileSync(filename: string, encoding: string): string;
-declare export function readFileSync(filename: string, options: OpenOptions): string;
-declare export function writeFile(filename: string, data: any, encoding?: string, callback?: (err: Error) => void): void;
-declare export function writeFile(filename: string, data: any, options?: OpenOptions, callback?: (err: Error) => void): void;
-declare export function writeFileSync(filename: string, data: any, encoding?: string): void;
-declare export function writeFileSync(filename: string, data: any, option?: OpenOptions): void;
-declare export function appendFile(filename: string, data: any, encoding?: string, callback?: (err: Error) => void): void;
-declare export function appendFile(filename: string, data: any, option?: OpenOptions, callback?: (err: Error) => void): void;
-declare export function appendFileSync(filename: string, data: any, encoding?: string): void;
-declare export function appendFileSync(filename: string, data: any, option?: OpenOptions): void;
-declare export function watchFile(filename: string, listener: { curr: Stats; prev: Stats; }): void;
-declare export function watchFile(filename: string, options: { persistent?: boolean; interval?: number; }, listener: { curr: Stats; prev: Stats; }): void;
-declare export function unwatchFile(filename: string, listener?: Stats): void;
-declare export function watch(filename: string, options?: { persistent?: boolean; }, listener?: (event: string, filename: string) => any): FSWatcher;
-declare export function exists(path: string, callback?: (exists: boolean) => void): void;
-declare export function existsSync(path: string): boolean;
-declare export function ensureDir(path: string, cb: (err: Error) => void): void;
-declare export function ensureDirSync(path: string): void;
+export declare function rename(oldPath: string, newPath: string, callback?: (err: Error) => void): void;
+export declare function renameSync(oldPath: string, newPath: string): void;
+export declare function truncate(fd: number, len: number, callback?: (err: Error) => void): void;
+export declare function truncateSync(fd: number, len: number): void;
+export declare function chown(path: string, uid: number, gid: number, callback?: (err: Error) => void): void;
+export declare function chownSync(path: string, uid: number, gid: number): void;
+export declare function fchown(fd: number, uid: number, gid: number, callback?: (err: Error) => void): void;
+export declare function fchownSync(fd: number, uid: number, gid: number): void;
+export declare function lchown(path: string, uid: number, gid: number, callback?: (err: Error) => void): void;
+export declare function lchownSync(path: string, uid: number, gid: number): void;
+export declare function chmod(path: string, mode: number, callback?: (err: Error) => void): void;
+export declare function chmod(path: string, mode: string, callback?: (err: Error) => void): void;
+export declare function chmodSync(path: string, mode: number): void;
+export declare function chmodSync(path: string, mode: string): void;
+export declare function fchmod(fd: number, mode: number, callback?: (err: Error) => void): void;
+export declare function fchmod(fd: number, mode: string, callback?: (err: Error) => void): void;
+export declare function fchmodSync(fd: number, mode: number): void;
+export declare function fchmodSync(fd: number, mode: string): void;
+export declare function lchmod(path: string, mode: string, callback?: (err: Error) => void): void;
+export declare function lchmod(path: string, mode: number, callback?: (err: Error) => void): void;
+export declare function lchmodSync(path: string, mode: number): void;
+export declare function lchmodSync(path: string, mode: string): void;
+export declare function stat(path: string, callback?: (err: Error, stats: Stats) => void): void;
+export declare function lstat(path: string, callback?: (err: Error, stats: Stats) => void): void;
+export declare function fstat(fd: number, callback?: (err: Error, stats: Stats) => void): void;
+export declare function statSync(path: string): Stats;
+export declare function lstatSync(path: string): Stats;
+export declare function fstatSync(fd: number): Stats;
+export declare function link(srcpath: string, dstpath: string, callback?: (err: Error) => void): void;
+export declare function linkSync(srcpath: string, dstpath: string): void;
+export declare function symlink(srcpath: string, dstpath: string, type?: string, callback?: (err: Error) => void): void;
+export declare function symlinkSync(srcpath: string, dstpath: string, type?: string): void;
+export declare function readlink(path: string, callback?: (err: Error, linkString: string) => void): void;
+export declare function realpath(path: string, callback?: (err: Error, resolvedPath: string) => void): void;
+export declare function realpath(path: string, cache: string, callback: (err: Error, resolvedPath: string) => void): void;
+export declare function realpathSync(path: string, cache?: boolean): string;
+export declare function unlink(path: string, callback?: (err: Error) => void): void;
+export declare function unlinkSync(path: string): void;
+export declare function rmdir(path: string, callback?: (err: Error) => void): void;
+export declare function rmdirSync(path: string): void;
+export declare function mkdir(path: string, mode?: number, callback?: (err: Error) => void): void;
+export declare function mkdir(path: string, mode?: string, callback?: (err: Error) => void): void;
+export declare function mkdirSync(path: string, mode?: number): void;
+export declare function mkdirSync(path: string, mode?: string): void;
+export declare function readdir(path: string, callback?: (err: Error, files: string[]) => void): void;
+export declare function readdirSync(path: string): string[];
+export declare function close(fd: number, callback?: (err: Error) => void): void;
+export declare function closeSync(fd: number): void;
+export declare function open(path: string, flags: string, mode?: string, callback?: (err: Error, fs: number) => void): void;
+export declare function openSync(path: string, flags: string, mode?: string): number;
+export declare function utimes(path: string, atime: number, mtime: number, callback?: (err: Error) => void): void;
+export declare function utimesSync(path: string, atime: number, mtime: number): void;
+export declare function futimes(fd: number, atime: number, mtime: number, callback?: (err: Error) => void): void;
+export declare function futimesSync(fd: number, atime: number, mtime: number): void;
+export declare function fsync(fd: number, callback?: (err: Error) => void): void;
+export declare function fsyncSync(fd: number): void;
+export declare function write(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number, callback?: (err: Error, written: number, buffer: NodeBuffer) => void): void;
+export declare function writeSync(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number): number;
+export declare function read(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number, callback?: (err: Error, bytesRead: number, buffer: NodeBuffer) => void): void;
+export declare function readSync(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number): number;
+export declare function readFile(filename: string, encoding: string, callback: (err: Error, data: string) => void): void;
+export declare function readFile(filename: string, options: OpenOptions, callback: (err: Error, data: string) => void): void;
+export declare function readFile(filename: string, callback: (err: Error, data: NodeBuffer) => void): void;
+export declare function readFileSync(filename: string): NodeBuffer;
+export declare function readFileSync(filename: string, encoding: string): string;
+export declare function readFileSync(filename: string, options: OpenOptions): string;
+export declare function writeFile(filename: string, data: any, encoding?: string, callback?: (err: Error) => void): void;
+export declare function writeFile(filename: string, data: any, options?: OpenOptions, callback?: (err: Error) => void): void;
+export declare function writeFileSync(filename: string, data: any, encoding?: string): void;
+export declare function writeFileSync(filename: string, data: any, option?: OpenOptions): void;
+export declare function appendFile(filename: string, data: any, encoding?: string, callback?: (err: Error) => void): void;
+export declare function appendFile(filename: string, data: any, option?: OpenOptions, callback?: (err: Error) => void): void;
+export declare function appendFileSync(filename: string, data: any, encoding?: string): void;
+export declare function appendFileSync(filename: string, data: any, option?: OpenOptions): void;
+export declare function watchFile(filename: string, listener: { curr: Stats; prev: Stats; }): void;
+export declare function watchFile(filename: string, options: { persistent?: boolean; interval?: number; }, listener: { curr: Stats; prev: Stats; }): void;
+export declare function unwatchFile(filename: string, listener?: Stats): void;
+export declare function watch(filename: string, options?: { persistent?: boolean; }, listener?: (event: string, filename: string) => any): FSWatcher;
+export declare function exists(path: string, callback?: (exists: boolean) => void): void;
+export declare function existsSync(path: string): boolean;
+export declare function ensureDir(path: string, cb: (err: Error) => void): void;
+export declare function ensureDirSync(path: string): void;
export interface OpenOptions {
encoding?: string;
@@ -186,77 +186,77 @@ export interface WriteStreamOptions {
encoding?: string;
string?: string;
}
-declare export function createReadStream(path: string, options?: ReadStreamOptions): ReadStream;
-declare export function createWriteStream(path: string, options?: WriteStreamOptions): WriteStream;
+export declare function createReadStream(path: string, options?: ReadStreamOptions): ReadStream;
+export declare function createWriteStream(path: string, options?: WriteStreamOptions): WriteStream;
//promisified versions
-declare export function copyAsync(src: string, dest: string): Promise;
-declare export function copyAsync(src: string, dest: string, filter: (src: string) => boolean): Promise;
+export declare function copyAsync(src: string, dest: string): Promise;
+export declare function copyAsync(src: string, dest: string, filter: (src: string) => boolean): Promise;
-declare export function createFileAsync(file: string): Promise;
+export declare function createFileAsync(file: string): Promise;
-declare export function mkdirsAsync(dir: string): Promise;
-declare export function mkdirpAsync(dir: string): Promise;
+export declare function mkdirsAsync(dir: string): Promise;
+export declare function mkdirpAsync(dir: string): Promise;
-declare export function outputFileAsync(file: string, data: any): Promise;
+export declare function outputFileAsync(file: string, data: any): Promise;
-declare export function outputJsonAsync(file: string, data: any): Promise;
-declare export function outputJSONAsync(file: string, data: any): Promise;
+export declare function outputJsonAsync(file: string, data: any): Promise;
+export declare function outputJSONAsync(file: string, data: any): Promise;
-declare export function readJsonAsync(file: string): Promise;
-declare export function readJsonAsync(file: string, options?: OpenOptions): Promise;
-declare export function readJSONAsync(file: string): Promise;
-declare export function readJSONAsync(file: string, options?: OpenOptions): Promise;
+export declare function readJsonAsync(file: string): Promise;
+export declare function readJsonAsync(file: string, options?: OpenOptions): Promise;
+export declare function readJSONAsync(file: string): Promise;
+export declare function readJSONAsync(file: string, options?: OpenOptions): Promise;
-declare export function removeAsync(dir: string): Promise;
+export declare function removeAsync(dir: string): Promise;
// export function deleteAsync(dir: string):Promise;
-declare export function writeJsonAsync(file: string, object: any): Promise;
-declare export function writeJsonAsync(file: string, object: any, options?: OpenOptions): Promise;
-declare export function writeJSONAsync(file: string, object: any): Promise;
-declare export function writeJSONAsync(file: string, object: any, options?: OpenOptions): Promise;
+export declare function writeJsonAsync(file: string, object: any): Promise;
+export declare function writeJsonAsync(file: string, object: any, options?: OpenOptions): Promise;
+export declare function writeJSONAsync(file: string, object: any): Promise;
+export declare function writeJSONAsync(file: string, object: any, options?: OpenOptions): Promise;
-declare export function renameAsync(oldPath: string, newPath: string): Promise;
-declare export function truncateAsync(fd: number, len: number): Promise;
-declare export function chownAsync(path: string, uid: number, gid: number): Promise;
-declare export function fchownAsync(fd: number, uid: number, gid: number): Promise;
-declare export function lchownAsync(path: string, uid: number, gid: number): Promise;
-declare export function chmodAsync(path: string, mode: number): Promise;
-declare export function chmodAsync(path: string, mode: string): Promise;
-declare export function fchmodAsync(fd: number, mode: number): Promise;
-declare export function fchmodAsync(fd: number, mode: string): Promise;
-declare export function lchmodAsync(path: string, mode: string): Promise;
-declare export function lchmodAsync(path: string, mode: number): Promise;
-declare export function statAsync(path: string): Promise;
-declare export function lstatAsync(path: string): Promise;
-declare export function fstatAsync(fd: number): Promise;
-declare export function linkAsync(srcpath: string, dstpath: string): Promise;
-declare export function symlinkAsync(srcpath: string, dstpath: string, type?: string): Promise;
-declare export function readlinkAsync(path: string): Promise;
-declare export function realpathAsync(path: string): Promise;
-declare export function realpathAsync(path: string, cache: string): Promise;
-declare export function unlinkAsync(path: string): Promise;
-declare export function rmdirAsync(path: string): Promise;
-declare export function mkdirAsync(path: string, mode?: number): Promise;
-declare export function mkdirAsync(path: string, mode?: string): Promise;
-declare export function readdirAsync(path: string): Promise;
-declare export function closeAsync(fd: number): Promise;
-declare export function openAsync(path: string, flags: string, mode?: string): Promise;
-declare export function utimesAsync(path: string, atime: number, mtime: number): Promise;
-declare export function futimesAsync(fd: number, atime: number, mtime: number): Promise;
-declare export function fsyncAsync(fd: number): Promise;
-declare export function writeAsync(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number): Promise<[number, NodeBuffer]>;
-declare export function readAsync(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number): Promise<[number, NodeBuffer]>;
-declare export function readFileAsync(filename: string, encoding: string): Promise;
-declare export function readFileAsync(filename: string, options: OpenOptions): Promise;
-declare export function readFileAsync(filename: string): Promise;
-declare export function writeFileAsync(filename: string, data: any, encoding?: string): Promise;
-declare export function writeFileAsync(filename: string, data: any, options?: OpenOptions): Promise;
-declare export function appendFileAsync(filename: string, data: any, encoding?: string): Promise;
-declare export function appendFileAsync(filename: string, data: any, option?: OpenOptions): Promise;
+export declare function renameAsync(oldPath: string, newPath: string): Promise;
+export declare function truncateAsync(fd: number, len: number): Promise;
+export declare function chownAsync(path: string, uid: number, gid: number): Promise;
+export declare function fchownAsync(fd: number, uid: number, gid: number): Promise;
+export declare function lchownAsync(path: string, uid: number, gid: number): Promise;
+export declare function chmodAsync(path: string, mode: number): Promise;
+export declare function chmodAsync(path: string, mode: string): Promise;
+export declare function fchmodAsync(fd: number, mode: number): Promise;
+export declare function fchmodAsync(fd: number, mode: string): Promise;
+export declare function lchmodAsync(path: string, mode: string): Promise;
+export declare function lchmodAsync(path: string, mode: number): Promise;
+export declare function statAsync(path: string): Promise;
+export declare function lstatAsync(path: string): Promise;
+export declare function fstatAsync(fd: number): Promise;
+export declare function linkAsync(srcpath: string, dstpath: string): Promise;
+export declare function symlinkAsync(srcpath: string, dstpath: string, type?: string): Promise;
+export declare function readlinkAsync(path: string): Promise;
+export declare function realpathAsync(path: string): Promise;
+export declare function realpathAsync(path: string, cache: string): Promise;
+export declare function unlinkAsync(path: string): Promise;
+export declare function rmdirAsync(path: string): Promise;
+export declare function mkdirAsync(path: string, mode?: number): Promise;
+export declare function mkdirAsync(path: string, mode?: string): Promise;
+export declare function readdirAsync(path: string): Promise;
+export declare function closeAsync(fd: number): Promise;
+export declare function openAsync(path: string, flags: string, mode?: string): Promise;
+export declare function utimesAsync(path: string, atime: number, mtime: number): Promise;
+export declare function futimesAsync(fd: number, atime: number, mtime: number): Promise;
+export declare function fsyncAsync(fd: number): Promise;
+export declare function writeAsync(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number): Promise<[number, NodeBuffer]>;
+export declare function readAsync(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number): Promise<[number, NodeBuffer]>;
+export declare function readFileAsync(filename: string, encoding: string): Promise;
+export declare function readFileAsync(filename: string, options: OpenOptions): Promise;
+export declare function readFileAsync(filename: string): Promise;
+export declare function writeFileAsync(filename: string, data: any, encoding?: string): Promise;
+export declare function writeFileAsync(filename: string, data: any, options?: OpenOptions): Promise;
+export declare function appendFileAsync(filename: string, data: any, encoding?: string): Promise;
+export declare function appendFileAsync(filename: string, data: any, option?: OpenOptions): Promise;
-declare export function existsAsync(path: string): Promise;
-declare export function ensureDirAsync(path: string): Promise;
+export declare function existsAsync(path: string): Promise;
+export declare function ensureDirAsync(path: string): Promise;
diff --git a/fs-extra/fs-extra.d.ts b/fs-extra/fs-extra.d.ts
index 8ec6bdf5f7..e73eb07902 100644
--- a/fs-extra/fs-extra.d.ts
+++ b/fs-extra/fs-extra.d.ts
@@ -37,147 +37,147 @@ export interface FSWatcher {
close(): void;
}
-declare export class ReadStream extends stream.Readable { }
-declare export class WriteStream extends stream.Writable { }
+export declare class ReadStream extends stream.Readable { }
+export declare class WriteStream extends stream.Writable { }
//extended methods
-declare export function copy(src: string, dest: string, callback?: (err: Error) => void): void;
-declare export function copy(src: string, dest: string, filter: CopyFilter, callback?: (err: Error) => void): void;
-declare export function copy(src: string, dest: string, options: CopyOptions, callback?: (err: Error) => void): void;
+export declare function copy(src: string, dest: string, callback?: (err: Error) => void): void;
+export declare function copy(src: string, dest: string, filter: CopyFilter, callback?: (err: Error) => void): void;
+export declare function copy(src: string, dest: string, options: CopyOptions, callback?: (err: Error) => void): void;
-declare export function copySync(src: string, dest: string): void;
-declare export function copySync(src: string, dest: string, filter: CopyFilter): void;
-declare export function copySync(src: string, dest: string, options: CopyOptions): void;
+export declare function copySync(src: string, dest: string): void;
+export declare function copySync(src: string, dest: string, filter: CopyFilter): void;
+export declare function copySync(src: string, dest: string, options: CopyOptions): void;
-declare export function createFile(file: string, callback?: (err: Error) => void): void;
-declare export function createFileSync(file: string): void;
+export declare function createFile(file: string, callback?: (err: Error) => void): void;
+export declare function createFileSync(file: string): void;
-declare export function mkdirs(dir: string, callback?: (err: Error) => void): void;
-declare export function mkdirp(dir: string, callback?: (err: Error) => void): void;
-declare export function mkdirs(dir: string, options?: MkdirOptions, callback?: (err: Error) => void): void;
-declare export function mkdirp(dir: string, options?: MkdirOptions, callback?: (err: Error) => void): void;
-declare export function mkdirsSync(dir: string, options?: MkdirOptions): void;
-declare export function mkdirpSync(dir: string, options?: MkdirOptions): void;
+export declare function mkdirs(dir: string, callback?: (err: Error) => void): void;
+export declare function mkdirp(dir: string, callback?: (err: Error) => void): void;
+export declare function mkdirs(dir: string, options?: MkdirOptions, callback?: (err: Error) => void): void;
+export declare function mkdirp(dir: string, options?: MkdirOptions, callback?: (err: Error) => void): void;
+export declare function mkdirsSync(dir: string, options?: MkdirOptions): void;
+export declare function mkdirpSync(dir: string, options?: MkdirOptions): void;
-declare export function outputFile(file: string, data: any, callback?: (err: Error) => void): void;
-declare export function outputFileSync(file: string, data: any): void;
+export declare function outputFile(file: string, data: any, callback?: (err: Error) => void): void;
+export declare function outputFileSync(file: string, data: any): void;
-declare export function outputJson(file: string, data: any, callback?: (err: Error) => void): void;
-declare export function outputJSON(file: string, data: any, callback?: (err: Error) => void): void;
-declare export function outputJsonSync(file: string, data: any): void;
-declare export function outputJSONSync(file: string, data: any): void;
+export declare function outputJson(file: string, data: any, callback?: (err: Error) => void): void;
+export declare function outputJSON(file: string, data: any, callback?: (err: Error) => void): void;
+export declare function outputJsonSync(file: string, data: any): void;
+export declare function outputJSONSync(file: string, data: any): void;
-declare export function readJson(file: string, callback: (err: Error, jsonObject: any) => void): void;
-declare export function readJson(file: string, options: OpenOptions, callback: (err: Error, jsonObject: any) => void): void;
-declare export function readJSON(file: string, callback: (err: Error, jsonObject: any) => void): void;
-declare export function readJSON(file: string, options: OpenOptions, callback: (err: Error, jsonObject: any) => void): void;
+export declare function readJson(file: string, callback: (err: Error, jsonObject: any) => void): void;
+export declare function readJson(file: string, options: OpenOptions, callback: (err: Error, jsonObject: any) => void): void;
+export declare function readJSON(file: string, callback: (err: Error, jsonObject: any) => void): void;
+export declare function readJSON(file: string, options: OpenOptions, callback: (err: Error, jsonObject: any) => void): void;
-declare export function readJsonSync(file: string, options?: OpenOptions): any;
-declare export function readJSONSync(file: string, options?: OpenOptions): any;
+export declare function readJsonSync(file: string, options?: OpenOptions): any;
+export declare function readJSONSync(file: string, options?: OpenOptions): any;
-declare export function remove(dir: string, callback?: (err: Error) => void): void;
-declare export function removeSync(dir: string): void;
+export declare function remove(dir: string, callback?: (err: Error) => void): void;
+export declare function removeSync(dir: string): void;
// export function delete(dir: string, callback?: (err: Error) => void): void;
// export function deleteSync(dir: string): void;
-declare export function writeJson(file: string, object: any, callback?: (err: Error) => void): void;
-declare export function writeJson(file: string, object: any, options?: OpenOptions, callback?: (err: Error) => void): void;
-declare export function writeJSON(file: string, object: any, callback?: (err: Error) => void): void;
-declare export function writeJSON(file: string, object: any, options?: OpenOptions, callback?: (err: Error) => void): void;
+export declare function writeJson(file: string, object: any, callback?: (err: Error) => void): void;
+export declare function writeJson(file: string, object: any, options?: OpenOptions, callback?: (err: Error) => void): void;
+export declare function writeJSON(file: string, object: any, callback?: (err: Error) => void): void;
+export declare function writeJSON(file: string, object: any, options?: OpenOptions, callback?: (err: Error) => void): void;
-declare export function writeJsonSync(file: string, object: any, options?: OpenOptions): void;
-declare export function writeJSONSync(file: string, object: any, options?: OpenOptions): void;
+export declare function writeJsonSync(file: string, object: any, options?: OpenOptions): void;
+export declare function writeJSONSync(file: string, object: any, options?: OpenOptions): void;
-declare export function rename(oldPath: string, newPath: string, callback?: (err: Error) => void): void;
-declare export function renameSync(oldPath: string, newPath: string): void;
-declare export function truncate(fd: number, len: number, callback?: (err: Error) => void): void;
-declare export function truncateSync(fd: number, len: number): void;
-declare export function chown(path: string, uid: number, gid: number, callback?: (err: Error) => void): void;
-declare export function chownSync(path: string, uid: number, gid: number): void;
-declare export function fchown(fd: number, uid: number, gid: number, callback?: (err: Error) => void): void;
-declare export function fchownSync(fd: number, uid: number, gid: number): void;
-declare export function lchown(path: string, uid: number, gid: number, callback?: (err: Error) => void): void;
-declare export function lchownSync(path: string, uid: number, gid: number): void;
-declare export function chmod(path: string, mode: number, callback?: (err: Error) => void): void;
-declare export function chmod(path: string, mode: string, callback?: (err: Error) => void): void;
-declare export function chmodSync(path: string, mode: number): void;
-declare export function chmodSync(path: string, mode: string): void;
-declare export function fchmod(fd: number, mode: number, callback?: (err: Error) => void): void;
-declare export function fchmod(fd: number, mode: string, callback?: (err: Error) => void): void;
-declare export function fchmodSync(fd: number, mode: number): void;
-declare export function fchmodSync(fd: number, mode: string): void;
-declare export function lchmod(path: string, mode: string, callback?: (err: Error) => void): void;
-declare export function lchmod(path: string, mode: number, callback?: (err: Error) => void): void;
-declare export function lchmodSync(path: string, mode: number): void;
-declare export function lchmodSync(path: string, mode: string): void;
-declare export function stat(path: string, callback?: (err: Error, stats: Stats) => void): void;
-declare export function lstat(path: string, callback?: (err: Error, stats: Stats) => void): void;
-declare export function fstat(fd: number, callback?: (err: Error, stats: Stats) => void): void;
-declare export function statSync(path: string): Stats;
-declare export function lstatSync(path: string): Stats;
-declare export function fstatSync(fd: number): Stats;
-declare export function link(srcpath: string, dstpath: string, callback?: (err: Error) => void): void;
-declare export function linkSync(srcpath: string, dstpath: string): void;
-declare export function symlink(srcpath: string, dstpath: string, type?: string, callback?: (err: Error) => void): void;
-declare export function symlinkSync(srcpath: string, dstpath: string, type?: string): void;
-declare export function readlink(path: string, callback?: (err: Error, linkString: string) => void): void;
-declare export function realpath(path: string, callback?: (err: Error, resolvedPath: string) => void): void;
-declare export function realpath(path: string, cache: string, callback: (err: Error, resolvedPath: string) => void): void;
-declare export function realpathSync(path: string, cache?: boolean): string;
-declare export function unlink(path: string, callback?: (err: Error) => void): void;
-declare export function unlinkSync(path: string): void;
-declare export function rmdir(path: string, callback?: (err: Error) => void): void;
-declare export function rmdirSync(path: string): void;
-declare export function mkdir(path: string, mode?: number, callback?: (err: Error) => void): void;
-declare export function mkdir(path: string, mode?: string, callback?: (err: Error) => void): void;
-declare export function mkdirSync(path: string, mode?: number): void;
-declare export function mkdirSync(path: string, mode?: string): void;
-declare export function readdir(path: string, callback?: (err: Error, files: string[]) => void): void;
-declare export function readdirSync(path: string): string[];
-declare export function close(fd: number, callback?: (err: Error) => void): void;
-declare export function closeSync(fd: number): void;
-declare export function open(path: string, flags: string, mode?: string, callback?: (err: Error, fs: number) => void): void;
-declare export function openSync(path: string, flags: string, mode?: string): number;
-declare export function utimes(path: string, atime: number, mtime: number, callback?: (err: Error) => void): void;
-declare export function utimesSync(path: string, atime: number, mtime: number): void;
-declare export function futimes(fd: number, atime: number, mtime: number, callback?: (err: Error) => void): void;
-declare export function futimesSync(fd: number, atime: number, mtime: number): void;
-declare export function fsync(fd: number, callback?: (err: Error) => void): void;
-declare export function fsyncSync(fd: number): void;
-declare export function write(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number, callback?: (err: Error, written: number, buffer: NodeBuffer) => void): void;
-declare export function writeSync(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number): number;
-declare export function read(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number, callback?: (err: Error, bytesRead: number, buffer: NodeBuffer) => void): void;
-declare export function readSync(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number): number;
-declare export function readFile(filename: string, encoding: string, callback: (err: Error, data: string) => void): void;
-declare export function readFile(filename: string, options: OpenOptions, callback: (err: Error, data: string) => void): void;
-declare export function readFile(filename: string, callback: (err: Error, data: NodeBuffer) => void): void;
-declare export function readFileSync(filename: string): NodeBuffer;
-declare export function readFileSync(filename: string, encoding: string): string;
-declare export function readFileSync(filename: string, options: OpenOptions): string;
-declare export function writeFile(filename: string, data: any, encoding?: string, callback?: (err: Error) => void): void;
-declare export function writeFile(filename: string, data: any, options?: OpenOptions, callback?: (err: Error) => void): void;
-declare export function writeFileSync(filename: string, data: any, encoding?: string): void;
-declare export function writeFileSync(filename: string, data: any, option?: OpenOptions): void;
-declare export function appendFile(filename: string, data: any, encoding?: string, callback?: (err: Error) => void): void;
-declare export function appendFile(filename: string, data: any, option?: OpenOptions, callback?: (err: Error) => void): void;
-declare export function appendFileSync(filename: string, data: any, encoding?: string): void;
-declare export function appendFileSync(filename: string, data: any, option?: OpenOptions): void;
-declare export function watchFile(filename: string, listener: { curr: Stats; prev: Stats; }): void;
-declare export function watchFile(filename: string, options: { persistent?: boolean; interval?: number; }, listener: { curr: Stats; prev: Stats; }): void;
-declare export function unwatchFile(filename: string, listener?: Stats): void;
-declare export function watch(filename: string, options?: { persistent?: boolean; }, listener?: (event: string, filename: string) => any): FSWatcher;
-declare export function exists(path: string, callback?: (exists: boolean) => void): void;
-declare export function existsSync(path: string): boolean;
-declare export function ensureDir(path: string, cb: (err: Error) => void): void;
-declare export function ensureDirSync(path: string): void;
-declare export function ensureFile(path: string, cb: (err: Error) => void): void;
-declare export function ensureFileSync(path: string): void;
-declare export function ensureLink(path: string, cb: (err: Error) => void): void;
-declare export function ensureLinkSync(path: string): void;
-declare export function ensureSymlink(path: string, cb: (err: Error) => void): void;
-declare export function ensureSymlinkSync(path: string): void;
-declare export function emptyDir(path: string, callback?: (err: Error) => void): void;
-declare export function emptyDirSync(path: string): boolean;
+export declare function rename(oldPath: string, newPath: string, callback?: (err: Error) => void): void;
+export declare function renameSync(oldPath: string, newPath: string): void;
+export declare function truncate(fd: number, len: number, callback?: (err: Error) => void): void;
+export declare function truncateSync(fd: number, len: number): void;
+export declare function chown(path: string, uid: number, gid: number, callback?: (err: Error) => void): void;
+export declare function chownSync(path: string, uid: number, gid: number): void;
+export declare function fchown(fd: number, uid: number, gid: number, callback?: (err: Error) => void): void;
+export declare function fchownSync(fd: number, uid: number, gid: number): void;
+export declare function lchown(path: string, uid: number, gid: number, callback?: (err: Error) => void): void;
+export declare function lchownSync(path: string, uid: number, gid: number): void;
+export declare function chmod(path: string, mode: number, callback?: (err: Error) => void): void;
+export declare function chmod(path: string, mode: string, callback?: (err: Error) => void): void;
+export declare function chmodSync(path: string, mode: number): void;
+export declare function chmodSync(path: string, mode: string): void;
+export declare function fchmod(fd: number, mode: number, callback?: (err: Error) => void): void;
+export declare function fchmod(fd: number, mode: string, callback?: (err: Error) => void): void;
+export declare function fchmodSync(fd: number, mode: number): void;
+export declare function fchmodSync(fd: number, mode: string): void;
+export declare function lchmod(path: string, mode: string, callback?: (err: Error) => void): void;
+export declare function lchmod(path: string, mode: number, callback?: (err: Error) => void): void;
+export declare function lchmodSync(path: string, mode: number): void;
+export declare function lchmodSync(path: string, mode: string): void;
+export declare function stat(path: string, callback?: (err: Error, stats: Stats) => void): void;
+export declare function lstat(path: string, callback?: (err: Error, stats: Stats) => void): void;
+export declare function fstat(fd: number, callback?: (err: Error, stats: Stats) => void): void;
+export declare function statSync(path: string): Stats;
+export declare function lstatSync(path: string): Stats;
+export declare function fstatSync(fd: number): Stats;
+export declare function link(srcpath: string, dstpath: string, callback?: (err: Error) => void): void;
+export declare function linkSync(srcpath: string, dstpath: string): void;
+export declare function symlink(srcpath: string, dstpath: string, type?: string, callback?: (err: Error) => void): void;
+export declare function symlinkSync(srcpath: string, dstpath: string, type?: string): void;
+export declare function readlink(path: string, callback?: (err: Error, linkString: string) => void): void;
+export declare function realpath(path: string, callback?: (err: Error, resolvedPath: string) => void): void;
+export declare function realpath(path: string, cache: string, callback: (err: Error, resolvedPath: string) => void): void;
+export declare function realpathSync(path: string, cache?: boolean): string;
+export declare function unlink(path: string, callback?: (err: Error) => void): void;
+export declare function unlinkSync(path: string): void;
+export declare function rmdir(path: string, callback?: (err: Error) => void): void;
+export declare function rmdirSync(path: string): void;
+export declare function mkdir(path: string, mode?: number, callback?: (err: Error) => void): void;
+export declare function mkdir(path: string, mode?: string, callback?: (err: Error) => void): void;
+export declare function mkdirSync(path: string, mode?: number): void;
+export declare function mkdirSync(path: string, mode?: string): void;
+export declare function readdir(path: string, callback?: (err: Error, files: string[]) => void): void;
+export declare function readdirSync(path: string): string[];
+export declare function close(fd: number, callback?: (err: Error) => void): void;
+export declare function closeSync(fd: number): void;
+export declare function open(path: string, flags: string, mode?: string, callback?: (err: Error, fs: number) => void): void;
+export declare function openSync(path: string, flags: string, mode?: string): number;
+export declare function utimes(path: string, atime: number, mtime: number, callback?: (err: Error) => void): void;
+export declare function utimesSync(path: string, atime: number, mtime: number): void;
+export declare function futimes(fd: number, atime: number, mtime: number, callback?: (err: Error) => void): void;
+export declare function futimesSync(fd: number, atime: number, mtime: number): void;
+export declare function fsync(fd: number, callback?: (err: Error) => void): void;
+export declare function fsyncSync(fd: number): void;
+export declare function write(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number, callback?: (err: Error, written: number, buffer: NodeBuffer) => void): void;
+export declare function writeSync(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number): number;
+export declare function read(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number, callback?: (err: Error, bytesRead: number, buffer: NodeBuffer) => void): void;
+export declare function readSync(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number): number;
+export declare function readFile(filename: string, encoding: string, callback: (err: Error, data: string) => void): void;
+export declare function readFile(filename: string, options: OpenOptions, callback: (err: Error, data: string) => void): void;
+export declare function readFile(filename: string, callback: (err: Error, data: NodeBuffer) => void): void;
+export declare function readFileSync(filename: string): NodeBuffer;
+export declare function readFileSync(filename: string, encoding: string): string;
+export declare function readFileSync(filename: string, options: OpenOptions): string;
+export declare function writeFile(filename: string, data: any, encoding?: string, callback?: (err: Error) => void): void;
+export declare function writeFile(filename: string, data: any, options?: OpenOptions, callback?: (err: Error) => void): void;
+export declare function writeFileSync(filename: string, data: any, encoding?: string): void;
+export declare function writeFileSync(filename: string, data: any, option?: OpenOptions): void;
+export declare function appendFile(filename: string, data: any, encoding?: string, callback?: (err: Error) => void): void;
+export declare function appendFile(filename: string, data: any, option?: OpenOptions, callback?: (err: Error) => void): void;
+export declare function appendFileSync(filename: string, data: any, encoding?: string): void;
+export declare function appendFileSync(filename: string, data: any, option?: OpenOptions): void;
+export declare function watchFile(filename: string, listener: { curr: Stats; prev: Stats; }): void;
+export declare function watchFile(filename: string, options: { persistent?: boolean; interval?: number; }, listener: { curr: Stats; prev: Stats; }): void;
+export declare function unwatchFile(filename: string, listener?: Stats): void;
+export declare function watch(filename: string, options?: { persistent?: boolean; }, listener?: (event: string, filename: string) => any): FSWatcher;
+export declare function exists(path: string, callback?: (exists: boolean) => void): void;
+export declare function existsSync(path: string): boolean;
+export declare function ensureDir(path: string, cb: (err: Error) => void): void;
+export declare function ensureDirSync(path: string): void;
+export declare function ensureFile(path: string, cb: (err: Error) => void): void;
+export declare function ensureFileSync(path: string): void;
+export declare function ensureLink(path: string, cb: (err: Error) => void): void;
+export declare function ensureLinkSync(path: string): void;
+export declare function ensureSymlink(path: string, cb: (err: Error) => void): void;
+export declare function ensureSymlinkSync(path: string): void;
+export declare function emptyDir(path: string, callback?: (err: Error) => void): void;
+export declare function emptyDirSync(path: string): boolean;
export interface CopyFilterFunction {
(src: string): boolean
@@ -213,6 +213,6 @@ export interface WriteStreamOptions {
encoding?: string;
string?: string;
}
-declare export function createReadStream(path: string, options?: ReadStreamOptions): ReadStream;
-declare export function createWriteStream(path: string, options?: WriteStreamOptions): WriteStream;
-declare export function createOutputStream(path: string, options?: WriteStreamOptions): WriteStream;
+export declare function createReadStream(path: string, options?: ReadStreamOptions): ReadStream;
+export declare function createWriteStream(path: string, options?: WriteStreamOptions): WriteStream;
+export declare function createOutputStream(path: string, options?: WriteStreamOptions): WriteStream;
diff --git a/ftpd/ftpd.d.ts b/ftpd/ftpd.d.ts
index 590563dedb..0a5949d9d2 100644
--- a/ftpd/ftpd.d.ts
+++ b/ftpd/ftpd.d.ts
@@ -96,7 +96,7 @@ export interface FtpServerOptions {
* On successful login, success should be called with a username argument. It may also optionally
* be given a second argument, which should be an object providing an implementation of the API for Node's fs module.
*/
-declare export class FtpConnection extends events.EventEmitter {
+export declare class FtpConnection extends events.EventEmitter {
server: FtpServer;
socket: net.Socket;
pasv: net.Server;
@@ -175,7 +175,7 @@ export interface FtpFileSystem {
* @event error net.Server error event
* @event client:connected (connection: FtpConnection)
*/
-declare export class FtpServer extends events.EventEmitter {
+export declare class FtpServer extends events.EventEmitter {
/**
* @param host host is a string representation of the IP address clients use to connect to the FTP server.
diff --git a/git-config/git-config.d.ts b/git-config/git-config.d.ts
index 71dbf33a96..6f9a324ca8 100644
--- a/git-config/git-config.d.ts
+++ b/git-config/git-config.d.ts
@@ -4,4 +4,4 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-declare export function sync(gitFile?: string): Object;
+export declare function sync(gitFile?: string): Object;
diff --git a/git/git.d.ts b/git/git.d.ts
index 8b2b070d93..987042abf3 100644
--- a/git/git.d.ts
+++ b/git/git.d.ts
@@ -5,7 +5,7 @@
// lib/git/git.js
-declare export class Git {
+export declare class Git {
constructor(gitDirectory: any);
@@ -112,7 +112,7 @@ declare export class Git {
}
// lib/git/actor.js
-declare export class Actor {
+export declare class Actor {
name: string;
email: string;
@@ -122,7 +122,7 @@ declare export class Actor {
}
// lib/git/blame.js
-declare export class Blame {
+export declare class Blame {
repo: Repo;
file: string;
commit: string;
@@ -134,7 +134,7 @@ declare export class Blame {
}
// lib/git/blame_line.js
-declare export class BlameLine {
+export declare class BlameLine {
lineno: number;
oldlineno: number;
commit: any;
@@ -144,7 +144,7 @@ declare export class BlameLine {
}
// lib/git/blob.js
-declare export class Blob {
+export declare class Blob {
repo: Repo;
id: any;
mode: any;
@@ -160,7 +160,7 @@ declare export class Blob {
}
// lib/git/commit.js
-declare export class Commit {
+export declare class Commit {
repo: Repo;
id: string;
parents: any[];
@@ -205,7 +205,7 @@ declare export class Commit {
}
// lib/git/commit_stats.js
-declare export class CommitStats {
+export declare class CommitStats {
repo: any;
id: any;
files: any[];
@@ -223,7 +223,7 @@ declare export class CommitStats {
}
// lib/git/config.js
-declare export class Config {
+export declare class Config {
repo: any;
data: any;
@@ -235,7 +235,7 @@ declare export class Config {
}
// lib/git/diff.js
-declare export class Diff {
+export declare class Diff {
repo: any;
a_path: any;
b_path: any;
@@ -253,7 +253,7 @@ declare export class Diff {
}
// lib/git/file_index/js
-declare export class FileIndex {
+export declare class FileIndex {
repo_path: any;
index_file: any;
sha_count: any;
@@ -279,7 +279,7 @@ declare export class FileIndex {
}
// lib/git/file_window.js
-declare export class FileWindow {
+export declare class FileWindow {
idxfile: any;
version: any;
global_offset: any;
@@ -298,7 +298,7 @@ declare export class FileWindow {
}
// lib/git/git_file_operations.js
-declare export class GitFileOperations {
+export declare class GitFileOperations {
static glob_streaming(path: any): any;
static glob(path: any, callback: Function): void;
@@ -317,7 +317,7 @@ declare export class GitFileOperations {
}
// lib/git/git_index.js
-declare export class GitIndex {
+export declare class GitIndex {
repo: any;
tree: any;
current_tree: any;
@@ -344,12 +344,12 @@ declare export class GitIndex {
}
// lib/git/git_object.js
-declare export class GitObject {
+export declare class GitObject {
static from_raw(rawObject: any, repository: any): any;
}
// lib/git/head.js
-declare export class Head {
+export declare class Head {
name: string;
commit: any; // string or Commit or ...?
@@ -365,7 +365,7 @@ declare export class Head {
}
// lib/git/loose_storage.js
-declare export class LooseStorage {
+export declare class LooseStorage {
directory: any;
constructor(directory: any);
@@ -384,7 +384,7 @@ declare export class LooseStorage {
}
// lib/git/merge.js
-declare export class Merge {
+export declare class Merge {
static STATUS_BOTH: string;
static STATUS_OURS: string;
static STATUS_THEIRS: string;
@@ -397,7 +397,7 @@ declare export class Merge {
}
// lib/git/pack_storage.js
-declare export class PackStorage {
+export declare class PackStorage {
name: any;
cache: any;
version: any;
@@ -418,7 +418,7 @@ declare export class PackStorage {
}
// lib/git/raw.js
-declare export class RawObject {
+export declare class RawObject {
type: any;
content: any;
@@ -430,11 +430,11 @@ declare export class RawObject {
}
// lib/git/ref.js
-declare export class Ref {
+export declare class Ref {
}
// lib/git/remote.js
-declare export class Remote {
+export declare class Remote {
constructor(name: any, commit: any);
find_all(repo: any, callback: Function): void;
@@ -443,7 +443,7 @@ declare export class Remote {
}
// lib/git/repo.js
-declare export class Repo {
+export declare class Repo {
path: string;
options: any;
git: any;
@@ -550,7 +550,7 @@ declare export class Repo {
}
// lib/git/repository.js
-declare export class Repository {
+export declare class Repository {
git_directory: any;
options: any;
already_searched: any;
@@ -597,7 +597,7 @@ declare export class Repository {
}
// lib/git/status.js
-declare export class Status {
+export declare class Status {
repo: any;
files: any[];
@@ -607,7 +607,7 @@ declare export class Status {
}
// lib/git/status_file.js
-declare export class StatusFile {
+export declare class StatusFile {
repo: any;
path: any;
type: any;
@@ -622,7 +622,7 @@ declare export class StatusFile {
}
// lib/git/sub_module.js
-declare export class Submodule {
+export declare class Submodule {
repo: any;
id: any;
mode: any;
@@ -637,7 +637,7 @@ declare export class Submodule {
}
// lib/git/tag.js
-declare export class Tag {
+export declare class Tag {
name: any;
commit: any;
@@ -649,7 +649,7 @@ declare export class Tag {
}
// lib/git/tree.js
-declare export class Tree {
+export declare class Tree {
repo: any;
id: any;
mode: any;
@@ -669,7 +669,7 @@ declare export class Tree {
}
// lib/git/user_info.js
-declare export class UserInfo {
+export declare class UserInfo {
name: any;
email: any;
date: any;
diff --git a/glob-stream/glob-stream.d.ts b/glob-stream/glob-stream.d.ts
index 7921891349..8f7415de23 100644
--- a/glob-stream/glob-stream.d.ts
+++ b/glob-stream/glob-stream.d.ts
@@ -21,5 +21,5 @@ export interface Element {
path: string;
}
-declare export function create(glob: string, opts?: Options): NodeJS.ReadableStream;
-declare export function create(globs: string[], opts?: Options): NodeJS.ReadableStream;
+export declare function create(glob: string, opts?: Options): NodeJS.ReadableStream;
+export declare function create(globs: string[], opts?: Options): NodeJS.ReadableStream;
diff --git a/graphviz/graphviz.d.ts b/graphviz/graphviz.d.ts
index f9d5178dcb..f8f6107cee 100644
--- a/graphviz/graphviz.d.ts
+++ b/graphviz/graphviz.d.ts
@@ -80,12 +80,12 @@ export interface Graph extends HasAttributes {
output(options: RenderOptions, callback: OutputCallback, errback?: ErrorCallback): void;
}
-declare export function graph(id: string): Graph;
+export declare function graph(id: string): Graph;
-declare export function digraph(id: string): Graph;
+export declare function digraph(id: string): Graph;
interface ParseCallback {
(graph: Graph): void;
}
-declare export function parse(path: string, callback: ParseCallback, errback?: ErrorCallback): void;
+export declare function parse(path: string, callback: ParseCallback, errback?: ErrorCallback): void;
diff --git a/gulp-sourcemaps/gulp-sourcemaps.d.ts b/gulp-sourcemaps/gulp-sourcemaps.d.ts
index e0f7893076..b0d30aad6e 100644
--- a/gulp-sourcemaps/gulp-sourcemaps.d.ts
+++ b/gulp-sourcemaps/gulp-sourcemaps.d.ts
@@ -22,6 +22,6 @@ interface WriteOptions {
sourceMappingURLPrefix?: string | WriteMapper;
}
-declare export function init(opts?: InitOptions): NodeJS.ReadWriteStream;
-declare export function write(path?: string, opts?: WriteOptions): NodeJS.ReadWriteStream;
-declare export function write(opts?: WriteOptions): NodeJS.ReadWriteStream;
+export declare function init(opts?: InitOptions): NodeJS.ReadWriteStream;
+export declare function write(path?: string, opts?: WriteOptions): NodeJS.ReadWriteStream;
+export declare function write(opts?: WriteOptions): NodeJS.ReadWriteStream;
diff --git a/hapi/hapi-8.2.0.d.ts b/hapi/hapi-8.2.0.d.ts
index 072e3a7a20..aaac409a8d 100644
--- a/hapi/hapi-8.2.0.d.ts
+++ b/hapi/hapi-8.2.0.d.ts
@@ -1044,7 +1044,7 @@ console.error('request aborted');
return reply.continue();
});*/
-declare export class Request extends Events.EventEmitter {
+export declare class Request extends Events.EventEmitter {
/** application-specific state. Provides a safe place to store application data without potential conflicts with the framework. Should not be used by plugins which should use plugins[name].*/
app: any;
/** authentication information*/
@@ -1309,7 +1309,7 @@ console.log(hash.digest('hex'));
return reply.continue();
});*/
-declare export class Response extends Events.EventEmitter {
+export declare class Response extends Events.EventEmitter {
/** the HTTP response status code. Defaults to 200 (except for errors).*/
statusCode: number;
/** an object containing the response headers where each key is a header field name. Note that this is an incomplete list of headers to be included with the response. Additional headers will be added once the response is prepare for transmission.*/
@@ -1421,7 +1421,7 @@ The server object inherits from Events.EventEmitter and emits the following even
'tail' - emitted when a request finished processing, including any registered tails. Single event per request.
Note that the server object should not be used to emit application events as its internal implementation is designed to fan events out to the various plugin selections and not for application events.
MORE EVENTS HERE: http://hapijs.com/api#server-events*/
-declare export class Server extends Events.EventEmitter {
+export declare class Server extends Events.EventEmitter {
constructor(options?: IServerOptions);
/** Provides a safe place to store server-specific run-time application data without potential conflicts with the framework internals. The data can be accessed whenever the server is accessible. Initialized with an empty object.
diff --git a/hapi/hapi.d.ts b/hapi/hapi.d.ts
index 07b5f83658..abd8de649f 100644
--- a/hapi/hapi.d.ts
+++ b/hapi/hapi.d.ts
@@ -1121,7 +1121,7 @@ console.error('request aborted');
return reply.continue();
});*/
-declare export class Request extends Events.EventEmitter {
+export declare class Request extends Events.EventEmitter {
/** application-specific state. Provides a safe place to store application data without potential conflicts with the framework. Should not be used by plugins which should use plugins[name].*/
app: any;
/** authentication information*/
@@ -1390,7 +1390,7 @@ console.log(hash.digest('hex'));
return reply.continue();
});*/
-declare export class Response extends Events.EventEmitter {
+export declare class Response extends Events.EventEmitter {
isBoom: boolean;
/** the HTTP response status code. Defaults to 200 (except for errors).*/
statusCode: number;
@@ -1511,7 +1511,7 @@ declare export class Response extends Events.EventEmitter {
vary(header: string): void;
}
/** When using the redirect() method, the response object provides these additional methods */
-declare export class ResponseRedirect extends Response {
+export declare class ResponseRedirect extends Response {
/** sets the status code to 302 or 307 (based on the rewritable() setting) where:
isTemporary - if false, sets status to permanent. Defaults to true.*/
temporary(isTemporary: boolean): void;
@@ -1557,7 +1557,7 @@ export interface IServerConnectionInfo {
* undocumented. The connection object constructed after calling server.connection();
* can be accessed via server.connections; or request.connection;
*/
-declare export class ServerConnection extends Events.EventEmitter {
+export declare class ServerConnection extends Events.EventEmitter {
domain: any;
_events: { route: Function, domain: Function, _events: Function, _eventsCount: Function, _maxListeners: Function };
_eventsCount: number;
@@ -1598,7 +1598,7 @@ declare export class ServerConnection extends Events.EventEmitter {
'tail' - emitted when a request finished processing, including any registered tails. Single event per request.
Note that the server object should not be used to emit application events as its internal implementation is designed to fan events out to the various plugin selections and not for application events.
MORE EVENTS HERE: http://hapijs.com/api#server-events*/
-declare export class Server extends Events.EventEmitter {
+export declare class Server extends Events.EventEmitter {
constructor(options?: IServerOptions);
diff --git a/highcharts-ng/highcharts-ng-tests.ts b/highcharts-ng/highcharts-ng-tests.ts
index b781a5fb10..5f451aeabb 100644
--- a/highcharts-ng/highcharts-ng-tests.ts
+++ b/highcharts-ng/highcharts-ng-tests.ts
@@ -1,5 +1,5 @@
///
-///
+///
var app = angular.module('app', ['highcharts-ng']);
diff --git a/htmlparser2/htmlparser2.d.ts b/htmlparser2/htmlparser2.d.ts
index 5db2d773fd..b53bbbb15e 100644
--- a/htmlparser2/htmlparser2.d.ts
+++ b/htmlparser2/htmlparser2.d.ts
@@ -60,7 +60,7 @@ export interface Options {
recognizeSelfClosing?: boolean;
}
-declare export class Parser {
+export declare class Parser {
constructor(handler: Handler, options?: Options);
/***
diff --git a/http-status-codes/http-status-codes.d.ts b/http-status-codes/http-status-codes.d.ts
index 147cf3b017..082ce9b767 100644
--- a/http-status-codes/http-status-codes.d.ts
+++ b/http-status-codes/http-status-codes.d.ts
@@ -4,57 +4,57 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-declare export var ACCEPTED: number;
-declare export var BAD_GATEWAY: number;
-declare export var BAD_REQUEST: number;
-declare export var CONFLICT: number;
-declare export var CONTINUE: number;
-declare export var CREATED: number;
-declare export var EXPECTATION_FAILED: number;
-declare export var FAILED_DEPENDENCY: number;
-declare export var FORBIDDEN: number;
-declare export var GATEWAY_TIMEOUT: number;
-declare export var GONE: number;
-declare export var HTTP_VERSION_NOT_SUPPORTED: number;
-declare export var INSUFFICIENT_SPACE_ON_RESOURCE: number;
-declare export var INSUFFICIENT_STORAGE: number;
-declare export var INTERNAL_SERVER_ERROR: number;
-declare export var LENGTH_REQUIRED: number;
-declare export var LOCKED: number;
-declare export var METHOD_FAILURE: number;
-declare export var METHOD_NOT_ALLOWED: number;
-declare export var MOVED_PERMANENTLY: number;
-declare export var MOVED_TEMPORARILY: number;
-declare export var MULTI_STATUS: number;
-declare export var MULTIPLE_CHOICES: number;
-declare export var NETWORK_AUTHENTICATION_REQUIRED: number;
-declare export var NO_CONTENT: number;
-declare export var NON_AUTHORITATIVE_INFORMATION: number;
-declare export var NOT_ACCEPTABLE: number;
-declare export var NOT_FOUND: number;
-declare export var NOT_IMPLEMENTED: number;
-declare export var NOT_MODIFIED: number;
-declare export var OK: number;
-declare export var PARTIAL_CONTENT: number;
-declare export var PAYMENT_REQUIRED: number;
-declare export var PRECONDITION_FAILED: number;
-declare export var PRECONDITION_REQUIRED: number;
-declare export var PROCESSING: number;
-declare export var PROXY_AUTHENTICATION_REQUIRED: number;
-declare export var REQUEST_HEADER_FIELDS_TOO_LARGE: number;
-declare export var REQUEST_TIMEOUT: number;
-declare export var REQUEST_TOO_LONG: number;
-declare export var REQUEST_URI_TOO_LONG: number;
-declare export var REQUESTED_RANGE_NOT_SATISFIABLE: number;
-declare export var RESET_CONTENT: number;
-declare export var SEE_OTHER: number;
-declare export var SERVICE_UNAVAILABLE: number;
-declare export var SWITCHING_PROTOCOLS: number;
-declare export var TEMPORARY_REDIRECT: number;
-declare export var TOO_MANY_REQUESTS: number;
-declare export var UNAUTHORIZED: number;
-declare export var UNPROCESSABLE_ENTITY: number;
-declare export var UNSUPPORTED_MEDIA_TYPE: number;
-declare export var USE_PROXY: number;
+export declare var ACCEPTED: number;
+export declare var BAD_GATEWAY: number;
+export declare var BAD_REQUEST: number;
+export declare var CONFLICT: number;
+export declare var CONTINUE: number;
+export declare var CREATED: number;
+export declare var EXPECTATION_FAILED: number;
+export declare var FAILED_DEPENDENCY: number;
+export declare var FORBIDDEN: number;
+export declare var GATEWAY_TIMEOUT: number;
+export declare var GONE: number;
+export declare var HTTP_VERSION_NOT_SUPPORTED: number;
+export declare var INSUFFICIENT_SPACE_ON_RESOURCE: number;
+export declare var INSUFFICIENT_STORAGE: number;
+export declare var INTERNAL_SERVER_ERROR: number;
+export declare var LENGTH_REQUIRED: number;
+export declare var LOCKED: number;
+export declare var METHOD_FAILURE: number;
+export declare var METHOD_NOT_ALLOWED: number;
+export declare var MOVED_PERMANENTLY: number;
+export declare var MOVED_TEMPORARILY: number;
+export declare var MULTI_STATUS: number;
+export declare var MULTIPLE_CHOICES: number;
+export declare var NETWORK_AUTHENTICATION_REQUIRED: number;
+export declare var NO_CONTENT: number;
+export declare var NON_AUTHORITATIVE_INFORMATION: number;
+export declare var NOT_ACCEPTABLE: number;
+export declare var NOT_FOUND: number;
+export declare var NOT_IMPLEMENTED: number;
+export declare var NOT_MODIFIED: number;
+export declare var OK: number;
+export declare var PARTIAL_CONTENT: number;
+export declare var PAYMENT_REQUIRED: number;
+export declare var PRECONDITION_FAILED: number;
+export declare var PRECONDITION_REQUIRED: number;
+export declare var PROCESSING: number;
+export declare var PROXY_AUTHENTICATION_REQUIRED: number;
+export declare var REQUEST_HEADER_FIELDS_TOO_LARGE: number;
+export declare var REQUEST_TIMEOUT: number;
+export declare var REQUEST_TOO_LONG: number;
+export declare var REQUEST_URI_TOO_LONG: number;
+export declare var REQUESTED_RANGE_NOT_SATISFIABLE: number;
+export declare var RESET_CONTENT: number;
+export declare var SEE_OTHER: number;
+export declare var SERVICE_UNAVAILABLE: number;
+export declare var SWITCHING_PROTOCOLS: number;
+export declare var TEMPORARY_REDIRECT: number;
+export declare var TOO_MANY_REQUESTS: number;
+export declare var UNAUTHORIZED: number;
+export declare var UNPROCESSABLE_ENTITY: number;
+export declare var UNSUPPORTED_MEDIA_TYPE: number;
+export declare var USE_PROXY: number;
-declare export function getStatusText(statusCode: number): string;
+export declare function getStatusText(statusCode: number): string;
diff --git a/http-string-parser/http-string-parser.d.ts b/http-string-parser/http-string-parser.d.ts
index cf8808f619..cf844edbd2 100644
--- a/http-string-parser/http-string-parser.d.ts
+++ b/http-string-parser/http-string-parser.d.ts
@@ -30,8 +30,8 @@ interface ParseStatusLineResult {
statusMessage: string;
}
-declare export function parseRequest(requestString: string): ParseRequestResult;
-declare export function parseResponse(responseString: string): ParseResponseResult;
-declare export function parseRequestLine(requestLineString: string): ParseRequestLineResult;
-declare export function parseStatusLine(statusLine: string): ParseStatusLineResult;
-declare export function parseHeaders(headerLines: string[]): { [key: string]: string };
+export declare function parseRequest(requestString: string): ParseRequestResult;
+export declare function parseResponse(responseString: string): ParseResponseResult;
+export declare function parseRequestLine(requestLineString: string): ParseRequestLineResult;
+export declare function parseStatusLine(statusLine: string): ParseStatusLineResult;
+export declare function parseHeaders(headerLines: string[]): { [key: string]: string };
diff --git a/icepick/icepick.d.ts b/icepick/icepick.d.ts
index 235a498ab4..184f0e12b1 100644
--- a/icepick/icepick.d.ts
+++ b/icepick/icepick.d.ts
@@ -4,39 +4,39 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-declare export function freeze(collection: T): T;
-declare export function thaw(collection: T): T;
-declare export function assoc(collection: T, key: number | string, value: any): T;
-declare export function dissoc(collection: T, key: number | string): T;
-declare export function assocIn(collection: T, path: Array, value: any): T;
-declare export function getIn(collection: any, path: Array): Result;
-declare export function updateIn(collection: T, path: Array, callback: (value: V) => V): T;
+export declare function freeze(collection: T): T;
+export declare function thaw(collection: T): T;
+export declare function assoc(collection: T, key: number | string, value: any): T;
+export declare function dissoc(collection: T, key: number | string): T;
+export declare function assocIn(collection: T, path: Array, value: any): T;
+export declare function getIn(collection: any, path: Array): Result;
+export declare function updateIn(collection: T, path: Array, callback: (value: V) => V): T;
export {assoc as set};
export {dissoc as unset};
export {assocIn as setIn};
-declare export function assign(target: T): T;
-declare export function assign(target: T, source1: S1): (T & S1);
-declare export function assign(target: T, s1: S1, s2: S2): (T & S1 & S2);
-declare export function assign(target: T, s1: S1, s2: S2, s3: S3): (T & S1 & S2 & S3);
-declare export function assign(target: T, s1: S1, s2: S2, s3: S3, s4: S4): (T & S1 & S2 & S3 & S4);
+export declare function assign(target: T): T;
+export declare function assign(target: T, source1: S1): (T & S1);
+export declare function assign(target: T, s1: S1, s2: S2): (T & S1 & S2);
+export declare function assign(target: T, s1: S1, s2: S2, s3: S3): (T & S1 & S2 & S3);
+export declare function assign(target: T, s1: S1, s2: S2, s3: S3, s4: S4): (T & S1 & S2 & S3 & S4);
export {assign as extend};
-declare export function merge(target: T, source: S1): (T & S1);
+export declare function merge(target: T, source: S1): (T & S1);
-declare export function push(array: T[], element: T): T[];
-declare export function pop(array: T[]): T[];
-declare export function shift(array: T[]): T[];
-declare export function unshift(array: T[], element: T): T[];
-declare export function reverse(array: T[]): T[];
-declare export function sort(array: T[], compareFunction?: (a: T, b: T) => number): T[];
-declare export function splice(array: T[], start: number, deleteCount: number, ...items: T[]): T[];
-declare export function slice(array: T[], begin?: number, end?: number): T[];
+export declare function push(array: T[], element: T): T[];
+export declare function pop(array: T[]): T[];
+export declare function shift(array: T[]): T[];
+export declare function unshift(array: T[], element: T): T[];
+export declare function reverse(array: T[]): T[];
+export declare function sort(array: T[], compareFunction?: (a: T, b: T) => number): T[];
+export declare function splice(array: T[], start: number, deleteCount: number, ...items: T[]): T[];
+export declare function slice(array: T[], begin?: number, end?: number): T[];
-declare export function map(fn: (value: T) => U, array: T[]): U[];
-declare export function filter(fn: (value: T) => boolean, array: T[]): T[];
+export declare function map(fn: (value: T) => U, array: T[]): U[];
+export declare function filter(fn: (value: T) => boolean, array: T[]): T[];
interface IcepickWrapper {
value(): T;
@@ -68,4 +68,4 @@ interface IcepickWrapper {
merge(source: S1): IcepickWrapper;
}
-declare export function chain(target: T): IcepickWrapper;
+export declare function chain(target: T): IcepickWrapper;
diff --git a/imagemagick-native/imagemagick-native.d.ts b/imagemagick-native/imagemagick-native.d.ts
index f0fab60560..724962a47b 100644
--- a/imagemagick-native/imagemagick-native.d.ts
+++ b/imagemagick-native/imagemagick-native.d.ts
@@ -8,7 +8,7 @@
import stream = require('stream');
-declare export module streams {
+export declare module streams {
export function convert(options: IStreamConvertOptions): stream.Transform;
}
diff --git a/imagemagick/imagemagick.d.ts b/imagemagick/imagemagick.d.ts
index 2dc0ee7b04..29dae576ab 100644
--- a/imagemagick/imagemagick.d.ts
+++ b/imagemagick/imagemagick.d.ts
@@ -10,22 +10,22 @@
import child_process = require("child_process");
-declare export function identify(path: string, callback: (err: Error, features: Features) => void): child_process.ChildProcess;
-declare export function identify(path: any[], callback: (err: Error, result: string) => void): child_process.ChildProcess;
-declare export module identify {
+export declare function identify(path: string, callback: (err: Error, features: Features) => void): child_process.ChildProcess;
+export declare function identify(path: any[], callback: (err: Error, result: string) => void): child_process.ChildProcess;
+export declare module identify {
export var path: string;
}
-declare export function readMetadata(path: string, callback: (err: Error, result: any) => void): child_process.ChildProcess;
+export declare function readMetadata(path: string, callback: (err: Error, result: any) => void): child_process.ChildProcess;
-declare export function convert(args: any, callback: (err: Error, result: any) => void): child_process.ChildProcess;
-declare export function convert(args: any, timeout: number, callback: (err: Error, result: any) => void): child_process.ChildProcess;
-declare export module convert {
+export declare function convert(args: any, callback: (err: Error, result: any) => void): child_process.ChildProcess;
+export declare function convert(args: any, timeout: number, callback: (err: Error, result: any) => void): child_process.ChildProcess;
+export declare module convert {
export var path: string;
}
-declare export function resize(options: Options, callback: (err: Error, result: any) => void): child_process.ChildProcess;
-declare export function crop(options: Options, callback: (err: Error, result: any) => void): child_process.ChildProcess;
-declare export function resizeArgs(options: Options): ResizeArgs;
+export declare function resize(options: Options, callback: (err: Error, result: any) => void): child_process.ChildProcess;
+export declare function crop(options: Options, callback: (err: Error, result: any) => void): child_process.ChildProcess;
+export declare function resizeArgs(options: Options): ResizeArgs;
export interface Features {
format?: string;
diff --git a/incremental-dom/incremental-dom.d.ts b/incremental-dom/incremental-dom.d.ts
index 3e40fa1241..6156031db1 100644
--- a/incremental-dom/incremental-dom.d.ts
+++ b/incremental-dom/incremental-dom.d.ts
@@ -12,7 +12,7 @@
* calls that describe the DOM.
* @param {?T} data An argument passed to fn to represent DOM state.
*/
-declare export var patch: (el: Node, fn: (data: T) => void, data?: T) => void;
+export declare var patch: (el: Node, fn: (data: T) => void, data?: T) => void;
/**
* Declares a virtual Element at the current location in the document. This
@@ -27,7 +27,7 @@ declare export var patch: (el: Node, fn: (data: T) => void, data?: T) => void
* @param {...*} var_args Attribute name/value pairs of the dynamic attributes
* for the Element.
*/
-declare export var elementOpen: (tag: string, key?: string, statics?: any[], ...var_args: any[]) => void;
+export declare var elementOpen: (tag: string, key?: string, statics?: any[], ...var_args: any[]) => void;
/**
* Declares a virtual Element at the current location in the document. This
* corresponds to an opening tag and a elementClose tag is required. This is
@@ -42,7 +42,7 @@ declare export var elementOpen: (tag: string, key?: string, statics?: any[], ...
* static attributes for the Element. These will only be set once when the
* Element is created.
*/
-declare export var elementOpenStart: (tag: string, key?: any, ...statics: any[]) => void;
+export declare var elementOpenStart: (tag: string, key?: any, ...statics: any[]) => void;
/***
* Defines a virtual attribute at this point of the DOM. This is only valid
* when called between elementOpenStart and elementOpenEnd.
@@ -50,15 +50,15 @@ declare export var elementOpenStart: (tag: string, key?: any, ...statics: any[])
* @param {string} name
* @param {*} value
*/
-declare export var attr: (name: string, value: any) => void;
+export declare var attr: (name: string, value: any) => void;
/**
* Closes an open tag started with elementOpenStart.
*/
-declare export var elementOpenEnd: () => void;
+export declare var elementOpenEnd: () => void;
/**
* Closes an open virtual Element.
*/
-declare export var elementClose: (tag: string) => void;
+export declare var elementClose: (tag: string) => void;
/**
* Declares a virtual Element at the current location in the document that has
* no children.
@@ -72,10 +72,10 @@ declare export var elementClose: (tag: string) => void;
* @param {...*} var_args Attribute name/value pairs of the dynamic attributes
* for the Element.
*/
-declare export var elementVoid: (tag: string, key?: string, statics?: any, ...var_args: any[]) => void;
+export declare var elementVoid: (tag: string, key?: string, statics?: any, ...var_args: any[]) => void;
/**
* Declares a virtual Text at this point in the document.
*
* @param {string} value The text of the Text.
*/
-declare export var text: (value: string) => void;
+export declare var text: (value: string) => void;
diff --git a/iniparser/iniparser.d.ts b/iniparser/iniparser.d.ts
index 045c07a6fe..05f0919fce 100644
--- a/iniparser/iniparser.d.ts
+++ b/iniparser/iniparser.d.ts
@@ -4,11 +4,11 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-declare export function parse(
+export declare function parse(
file: string,
callback: (err: any, data: T) => void
): void;
-declare export function parseSync(file: string): T;
+export declare function parseSync(file: string): T;
-declare export function parseString(data: string): T;
+export declare function parseString(data: string): T;
diff --git a/ionic/ionic.d.ts b/ionic/ionic.d.ts
index 994b7ae27e..aa375b3f67 100644
--- a/ionic/ionic.d.ts
+++ b/ionic/ionic.d.ts
@@ -3,7 +3,7 @@
// Definitions by: Spencer Williams
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-///
+///
interface IonicStatic {
/**
diff --git a/jade/jade.d.ts b/jade/jade.d.ts
index 6be4b8b45f..bc97c52839 100644
--- a/jade/jade.d.ts
+++ b/jade/jade.d.ts
@@ -4,12 +4,12 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-declare export function compile(template: string, options?: any): (locals?: any) => string;
-declare export function compileFile(path: string, options?: any): (locals?: any) => string;
-declare export function compileClient(template: string, options?: any): (locals?: any) => string;
-declare export function compileClientWithDependenciesTracked(template: string, options?: any): {
+export declare function compile(template: string, options?: any): (locals?: any) => string;
+export declare function compileFile(path: string, options?: any): (locals?: any) => string;
+export declare function compileClient(template: string, options?: any): (locals?: any) => string;
+export declare function compileClientWithDependenciesTracked(template: string, options?: any): {
body: (locals?: any) => string;
dependencies: string[];
};
-declare export function render(template: string, options?: any): string;
-declare export function renderFile(path: string, options?: any): string;
+export declare function render(template: string, options?: any): string;
+export declare function renderFile(path: string, options?: any): string;
diff --git a/johnny-five/johnny-five.d.ts b/johnny-five/johnny-five.d.ts
index 4c917f4e0f..1e8cd2198c 100644
--- a/johnny-five/johnny-five.d.ts
+++ b/johnny-five/johnny-five.d.ts
@@ -30,7 +30,7 @@ export interface AccelerometerMMA7361Option extends AccelerometerGeneralOption {
sleepPin?: number | string;
}
-declare export class Accelerometer {
+export declare class Accelerometer {
constructor(option: AccelerometerGeneralOption | AccelerometerAnalogOption | AccelerometerMPU6050Option | AccelerometerMMA7361Option);
on(event: string, cb: () => void): void;
on(event: "change", cb: () => void): void;
@@ -40,7 +40,7 @@ declare export class Accelerometer {
disable(): void;
}
-declare export class Animation {
+export declare class Animation {
constructor(option: Servo | Array);
enqueue(segment: any): void;
play(): void;
@@ -69,7 +69,7 @@ export interface ButtonOptions {
holdtime?: number;
}
-declare export class Button {
+export declare class Button {
constructor(pin: number | string | ButtonOptions);
on(event: string, cb: () => void): void;
on(event: "hold", cb: (holdTime: number) => void): void;
@@ -89,7 +89,7 @@ export interface Repl {
inject(object: any): void;
}
-declare export class Board {
+export declare class Board {
constructor(option?: BoardOptions);
on(event: string, cb: () => void): void;
on(event: "ready", cb: () => void): void;
@@ -116,7 +116,7 @@ export interface CompassOptions {
gauss?: number;
}
-declare export class Compass {
+export declare class Compass {
constructor(option: CompassOptions);
on(event: string, cb: () => void): void;
on(event: "change", cb: () => void): void;
@@ -129,7 +129,7 @@ export interface ESCOption {
startAt?: number;
}
-declare export class ESC {
+export declare class ESC {
constructor(option: number | string | ESCOption);
speed(value: number): void;
min(): void;
@@ -151,7 +151,7 @@ export interface GyroMPU6050Option extends GyroGeneralOption {
sensitivity: number;
}
-declare export class Gyro {
+export declare class Gyro {
constructor(option: GyroGeneralOption | GyroAnalogOption | GyroMPU6050Option);
on(event: string, cb: () => void): void;
on(event: "change", cb: () => void): void;
@@ -168,14 +168,14 @@ export interface IMUMPU6050Option extends IMUGeneralOption {
address: number;
}
-declare export class IMU {
+export declare class IMU {
constructor(option: IMUGeneralOption | IMUMPU6050Option);
on(event: string, cb: () => void): void;
on(event: "change", cb: () => void): void;
on(event: "data", cb: (data: any) => void): void;
}
-declare export module IR {
+export declare module IR {
export interface MotionOption {
pin: number | string;
}
@@ -232,7 +232,7 @@ export interface JoystickOption {
pins: Array;
}
-declare export class Joystick {
+export declare class Joystick {
constructor(option: JoystickOption);
on(event: string, cb: () => void): void;
on(event: "data", cb: (data: any) => void): void;
@@ -259,7 +259,7 @@ export interface LCDParallelOption extends LCDGeneralOption {
backlight?: number;
}
-declare export class LCD {
+export declare class LCD {
constructor(option: LCDGeneralOption | LCDI2COption | LCDParallelOption);
print(message: string): void;
useChar(char: string): void;
@@ -282,7 +282,7 @@ export interface LedOption {
isAnode?: boolean;
}
-declare export class Led {
+export declare class Led {
constructor(option: number | LedOption);
on(): void;
off(): void;
@@ -298,7 +298,7 @@ declare export class Led {
stop(ms: number): void;
}
-declare export module Led {
+export declare module Led {
export interface DigitsOption {
pins: any;
devices?: number;
@@ -382,7 +382,7 @@ export interface MotorOption {
bits?: any;
}
-declare export class Motor {
+export declare class Motor {
constructor(option: Array | MotorOption);
forward(speed: number): void;
fwd(speed: number): void;
@@ -399,7 +399,7 @@ export interface PiezoOption {
pin: number;
}
-declare export class Piezo {
+export declare class Piezo {
constructor(option: number | PiezoOption);
frequency(frequency: number, duration: number): void;
play(tune: any, cb?: () => void): void;
@@ -422,7 +422,7 @@ export interface PinState {
analogChannel: number;
}
-declare export class Pin {
+export declare class Pin {
constructor(option: number | string | PinOption);
query(cb: (pin: PinState) => void): void;
high(): void;
@@ -439,7 +439,7 @@ export interface PingOption {
pulse?: number;
}
-declare export class Ping {
+export declare class Ping {
constructor(option: number | PingOption);
}
@@ -448,7 +448,7 @@ export interface RelayOption {
type?: string;
}
-declare export class Relay {
+export declare class Relay {
constructor(option: number | RelayOption);
open(): void;
close(): void;
@@ -461,7 +461,7 @@ export interface SensorOption {
threshold?: number;
}
-declare export class Sensor {
+export declare class Sensor {
constructor(option: number | string | SensorOption);
scale(low: number, high: number): Sensor;
scale(range: number[]): Sensor;
@@ -493,7 +493,7 @@ export interface ServoSweepOpts {
step?: number;
}
-declare export class Servo {
+export declare class Servo {
constructor(option: number | string | ServoGeneralOption);
to(degrees: number, ms?: number, rage?: number): void;
min(): void;
@@ -513,7 +513,7 @@ export interface ShiftRegisterOption {
pins: any;
}
-declare export class ShiftRegister {
+export declare class ShiftRegister {
constructor(option: ShiftRegisterOption);
send(...value: number[]): void;
}
@@ -525,7 +525,7 @@ export interface SonarOption {
threshold?: number;
}
-declare export class Sonar {
+export declare class Sonar {
constructor(option: number | string | SonarOption);
within(range: Array, cb: () => void): void;
within(range: Array, unit: string, cb: () => void): void;
@@ -542,7 +542,7 @@ export interface StepperOption {
direction?: number;
}
-declare export module Stepper {
+export declare module Stepper {
export class TYPE {
static DRIVER: number;
static TWO_WIRE: number;
@@ -550,7 +550,7 @@ declare export module Stepper {
}
}
-declare export class Stepper {
+export declare class Stepper {
constructor(option: number | string | StepperOption);
step(stepsOrOpts: any, cb: () => void): void;
rpm(): Stepper;
@@ -580,7 +580,7 @@ export interface TemperatureOption {
freq?: number;
}
-declare export class Temperature {
+export declare class Temperature {
constructor(option: TemperatureOption);
on(event: string, cb: () => void): void;
on(event: "data", cb: (data: any) => void): void;
diff --git a/joi/joi.d.ts b/joi/joi.d.ts
index dc84af752d..916d859498 100644
--- a/joi/joi.d.ts
+++ b/joi/joi.d.ts
@@ -700,67 +700,67 @@ export interface AlternativesSchema extends AnySchema {
/**
* Generates a schema object that matches any data type.
*/
-declare export function any(): Schema;
+export declare function any(): Schema;
/**
* Generates a schema object that matches an array data type.
*/
-declare export function array(): ArraySchema;
+export declare function array(): ArraySchema;
/**
* Generates a schema object that matches a boolean data type (as well as the strings 'true', 'false', 'yes', and 'no'). Can also be called via bool().
*/
-declare export function bool(): BooleanSchema;
+export declare function bool(): BooleanSchema;
-declare export function boolean(): BooleanSchema;
+export declare function boolean(): BooleanSchema;
/**
* Generates a schema object that matches a Buffer data type (as well as the strings which will be converted to Buffers).
*/
-declare export function binary(): BinarySchema;
+export declare function binary(): BinarySchema;
/**
* Generates a schema object that matches a date type (as well as a JavaScript date string or number of milliseconds).
*/
-declare export function date(): DateSchema;
+export declare function date(): DateSchema;
/**
* Generates a schema object that matches a function type.
*/
-declare export function func(): FunctionSchema;
+export declare function func(): FunctionSchema;
/**
* Generates a schema object that matches a number data type (as well as strings that can be converted to numbers).
*/
-declare export function number(): NumberSchema;
+export declare function number(): NumberSchema;
/**
* Generates a schema object that matches an object data type (as well as JSON strings that parsed into objects).
*/
-declare export function object(schema?: SchemaMap): ObjectSchema;
+export declare function object(schema?: SchemaMap): ObjectSchema;
/**
* Generates a schema object that matches a string data type. Note that empty strings are not allowed by default and must be enabled with allow('').
*/
-declare export function string(): StringSchema;
+export declare function string(): StringSchema;
/**
* Generates a type that will match one of the provided alternative schemas
*/
-declare export function alternatives(types: Schema[]): Schema;
-declare export function alternatives(type1: Schema, type2: Schema, ...types: Schema[]): Schema;
+export declare function alternatives(types: Schema[]): Schema;
+export declare function alternatives(type1: Schema, type2: Schema, ...types: Schema[]): Schema;
/**
* Validates a value using the given schema and options.
*/
-declare export function validate(value: T, schema: Schema, callback: (err: ValidationError, value: T) => void): void;
-declare export function validate(value: T, schema: Object, callback: (err: ValidationError, value: T) => void): void;
-declare export function validate(value: T, schema: Object, options?: ValidationOptions, callback?: (err: ValidationError, value: T) => void): ValidationResult;
+export declare function validate(value: T, schema: Schema, callback: (err: ValidationError, value: T) => void): void;
+export declare function validate(value: T, schema: Object, callback: (err: ValidationError, value: T) => void): void;
+export declare function validate