diff options
Diffstat (limited to 'tools/typings')
-rw-r--r-- | tools/typings/connect-livereload.d.ts | 5 | ||||
-rw-r--r-- | tools/typings/gulp-load-plugins.d.ts | 42 | ||||
-rw-r--r-- | tools/typings/karma.d.ts | 12 | ||||
-rw-r--r-- | tools/typings/merge-stream.d.ts | 8 | ||||
-rw-r--r-- | tools/typings/open.d.ts | 8 | ||||
-rw-r--r-- | tools/typings/run-sequence.d.ts | 5 | ||||
-rw-r--r-- | tools/typings/slash.d.ts | 5 | ||||
-rw-r--r-- | tools/typings/systemjs-builder.d.ts | 10 | ||||
-rw-r--r-- | tools/typings/tiny-lr.d.ts | 10 | ||||
-rw-r--r-- | tools/typings/yargs.d.ts | 9 |
10 files changed, 114 insertions, 0 deletions
diff --git a/tools/typings/connect-livereload.d.ts b/tools/typings/connect-livereload.d.ts new file mode 100644 index 0000000..1b1ef21 --- /dev/null +++ b/tools/typings/connect-livereload.d.ts @@ -0,0 +1,5 @@ +declare module 'connect-livereload' { + function connectLivereload(options?: any): any; + module connectLivereload {} + export = connectLivereload; +} diff --git a/tools/typings/gulp-load-plugins.d.ts b/tools/typings/gulp-load-plugins.d.ts new file mode 100644 index 0000000..809c305 --- /dev/null +++ b/tools/typings/gulp-load-plugins.d.ts @@ -0,0 +1,42 @@ +// Type definitions for gulp-load-plugins +// Project: https://github.com/jackfranklin/gulp-load-plugins +// Definitions by: Joe Skeen <http://github.com/joeskeen> +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +// Does not support ES2015 import (import * as open from 'open'). + +/** Loads in any gulp plugins and attaches them to an object, freeing you up from having to manually require each gulp plugin. */ +declare module 'gulp-load-plugins' { + + interface IOptions { + /** the glob(s) to search for, default ['gulp-*', 'gulp.*'] */ + pattern?: string[]; + /** where to find the plugins, searched up from process.cwd(), default 'package.json' */ + config?: string; + /** which keys in the config to look within, default ['dependencies', 'devDependencies', 'peerDependencies'] */ + scope?: string[]; + /** what to remove from the name of the module when adding it to the context, default /^gulp(-|\.)/ */ + replaceString?: RegExp; + /** if true, transforms hyphenated plugin names to camel case, default true */ + camelize?: boolean; + /** whether the plugins should be lazy loaded on demand, default true */ + lazy?: boolean; + /** a mapping of plugins to rename, the key being the NPM name of the package, and the value being an alias you define */ + rename?: IPluginNameMappings; + } + + interface IPluginNameMappings { + [npmPackageName: string]: string; + } + + /** Loads in any gulp plugins and attaches them to an object, freeing you up from having to manually require each gulp plugin. */ + function gulpLoadPlugins<T extends IGulpPlugins>(options?: IOptions): T; + module gulpLoadPlugins {} + export = gulpLoadPlugins; +} + +/** + * Extend this interface to use Gulp plugins in your gulpfile.js + */ +interface IGulpPlugins { +} diff --git a/tools/typings/karma.d.ts b/tools/typings/karma.d.ts new file mode 100644 index 0000000..5d2cd42 --- /dev/null +++ b/tools/typings/karma.d.ts @@ -0,0 +1,12 @@ +// Use this minimalistic definition file as bluebird dependency +// generate a lot of errors. + +declare module 'karma' { + var karma: IKarma; + export = karma; + interface IKarma { + server: { + start(options: any, callback: Function): void + }; + } +} diff --git a/tools/typings/merge-stream.d.ts b/tools/typings/merge-stream.d.ts new file mode 100644 index 0000000..7425d35 --- /dev/null +++ b/tools/typings/merge-stream.d.ts @@ -0,0 +1,8 @@ +declare module 'merge-stream' { + function mergeStream(...streams: NodeJS.ReadWriteStream[]): MergeStream; + interface MergeStream extends NodeJS.ReadWriteStream { + add(stream: NodeJS.ReadWriteStream): MergeStream; + } + module mergeStream {} + export = mergeStream; +}
\ No newline at end of file diff --git a/tools/typings/open.d.ts b/tools/typings/open.d.ts new file mode 100644 index 0000000..89d4b76 --- /dev/null +++ b/tools/typings/open.d.ts @@ -0,0 +1,8 @@ +// https://github.com/borisyankov/DefinitelyTyped/tree/master/open +// Does not support ES2015 import (import * as open from 'open'). + +declare module 'open' { + function open(target: string, app?: string): void; + module open {} + export = open; +} diff --git a/tools/typings/run-sequence.d.ts b/tools/typings/run-sequence.d.ts new file mode 100644 index 0000000..c4fada3 --- /dev/null +++ b/tools/typings/run-sequence.d.ts @@ -0,0 +1,5 @@ +declare module 'run-sequence' { + function runSequence(...args: any[]): void; + module runSequence {} + export = runSequence; +} diff --git a/tools/typings/slash.d.ts b/tools/typings/slash.d.ts new file mode 100644 index 0000000..10ec0b5 --- /dev/null +++ b/tools/typings/slash.d.ts @@ -0,0 +1,5 @@ +declare module 'slash' { + function slash(path: string): string; + module slash {} + export = slash; +} diff --git a/tools/typings/systemjs-builder.d.ts b/tools/typings/systemjs-builder.d.ts new file mode 100644 index 0000000..4644816 --- /dev/null +++ b/tools/typings/systemjs-builder.d.ts @@ -0,0 +1,10 @@ +declare module 'systemjs-builder' { + class Builder { + constructor(configObject?: any, baseUrl?: string, configPath?: string); + bundle(source: string, target: string, options?: any): Promise<any>; + buildStatic(source: string, target: string, options?: any): Promise<any>; + } + + module Builder {} + export = Builder; +} diff --git a/tools/typings/tiny-lr.d.ts b/tools/typings/tiny-lr.d.ts new file mode 100644 index 0000000..8a492d5 --- /dev/null +++ b/tools/typings/tiny-lr.d.ts @@ -0,0 +1,10 @@ +declare module 'tiny-lr' { + function tinylr(): ITinylr; + module tinylr {} + export = tinylr; + + interface ITinylr { + changed(options: any): void; + listen(port: number): void; + } +} diff --git a/tools/typings/yargs.d.ts b/tools/typings/yargs.d.ts new file mode 100644 index 0000000..8351942 --- /dev/null +++ b/tools/typings/yargs.d.ts @@ -0,0 +1,9 @@ +declare module 'yargs' { + var yargs: IYargs; + export = yargs; + + // Minimalistic but serves the usage in the seed. + interface IYargs { + argv: any; + } +} |