mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-06 16:20:26 +08:00
@@ -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');
|
||||
}
|
||||
Vendored
+9
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user