We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a3282fd + 2a9c63c commit e8f8e74Copy full SHA for e8f8e74
resolve-from/resolve-from-tests.ts
@@ -0,0 +1,6 @@
1
+/// <reference path="resolve-from.d.ts" />
2
+
3
+// Much better testing in https://github.com/typed-typings/typed-resolve-from
4
+if (typeof resolveFrom !== 'function') {
5
+ throw new Error('resolveFrom is not a function');
6
+}
resolve-from/resolve-from.d.ts
@@ -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;
7
+declare module "resolve-from" {
8
+ export = resolveFrom;
9
0 commit comments