DefinitelyTyped/types/resolve-pkg/index.d.ts
2018-12-07 09:35:08 +01:00

15 lines
456 B
TypeScript

// Type definitions for resolve-pkg 1.0
// Project: https://github.com/sindresorhus/resolve-pkg
// Definitions by: Meno Abels <https://github.com/mabels>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.9
interface ResolvePkgOptions {
cwd?: boolean;
}
type ResolveFunction = (moduleId: string, options?: ResolvePkgOptions) => string;
declare const resolveFunction: ResolveFunction;
export = resolveFunction;