Merge pull request #8796 from unional/patch-1

Add resolve-from
This commit is contained in:
Horiuchi_H
2016-04-01 17:02:49 +09:00
2 changed files with 15 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
/// <reference path="resolve-from.d.ts" />
// Much better testing in https://github.com/typed-typings/typed-resolve-from
if (typeof resolveFrom !== 'function') {
throw new Error('resolveFrom is not a function');
}
+9
View File
@@ -0,0 +1,9 @@
// Type definitions for resolve-from
// Project: https://github.com/sindresorhus/resolve-from
// Definitions by: unional <https://github.com/unional>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function resolveFrom(fromDir: string, moduleId: string): string;
declare module "resolve-from" {
export = resolveFrom;
}