diff --git a/resolve-from/resolve-from-tests.ts b/resolve-from/resolve-from-tests.ts new file mode 100644 index 000000000..840a19b86 --- /dev/null +++ b/resolve-from/resolve-from-tests.ts @@ -0,0 +1,6 @@ +/// + +// Much better testing in https://github.com/typed-typings/typed-resolve-from +if (typeof resolveFrom !== 'function') { + throw new Error('resolveFrom is not a function'); +} diff --git a/resolve-from/resolve-from.d.ts b/resolve-from/resolve-from.d.ts new file mode 100644 index 000000000..a8d044113 --- /dev/null +++ b/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 +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +declare function resolveFrom(fromDir: string, moduleId: string): string; + +declare module "resolve-from" { + export = resolveFrom; +}