Skip to content

Instantly share code, notes, and snippets.

@glen-84
Created January 6, 2016 12:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glen-84/f0a71d581a150ad6593f to your computer and use it in GitHub Desktop.
Save glen-84/f0a71d581a150ad6593f to your computer and use it in GitHub Desktop.
// Note: The definitions below are incomplete, they are just used to satisfy the TypeScript compiler for now.
declare module "glob2base" {
var glob2base: any;
export = glob2base;
}
declare module "gulp" {
var gulp: any;
export = gulp;
}
declare module "gulplog" {
var gulplog: any;
export = gulplog;
}
declare module "gulp-babel" {
var babel: any;
export = babel;
}
declare module "gulp-htmlmin" {
var htmlmin: any;
export = htmlmin;
}
declare module "gulp-if-else" {
var gulpIfElse: any;
export = gulpIfElse;
}
declare module "gulp-imagemin" {
var imagemin: any;
export = imagemin;
}
declare module "gulp-preprocess" {
var preprocess: any;
export = preprocess;
}
declare module "gulp-print" {
var gulpPrint: any;
export = gulpPrint;
}
declare module "gulp-uglify" {
var gulpUglify: any;
export = gulpUglify;
}
declare module "nested-property" {
/**
* Get the property of an object nested in one or more objects
* given an object such as a.b.c.d = 5, getNestedProperty(a, "b.c.d") will return 5.
* @param {Object} object the object to get the property from
* @param {String} property the path to the property as a string
* @returns the object or the the property value if found
*/
function getNestedProperty(object: Object, property: string): any;
export = {
get: getNestedProperty
};
}
declare module "rwlock" {
var rwlock: any;
export = rwlock;
}
declare module "undertaker-registry" {
interface DefaultRegistry {
new(): DefaultRegistry
}
var reg: DefaultRegistry;
export = reg;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment