diff --git a/types/project-name/index.d.ts b/types/project-name/index.d.ts index 2bd513e4b4..264c70152e 100644 --- a/types/project-name/index.d.ts +++ b/types/project-name/index.d.ts @@ -3,8 +3,9 @@ // Definitions by: Ajil Oommen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +export = index; /** * Type Definition for project-name - * @param cwd The Base Current Working Directory of project + * @param cwd The Base Current Working Directory of project */ -export default function (cwd: string): string; \ No newline at end of file +declare function index(cwd: string): string; \ No newline at end of file diff --git a/types/project-name/project-name-tests.ts b/types/project-name/project-name-tests.ts index 0b7e4b20e7..c48ab97e8d 100644 --- a/types/project-name/project-name-tests.ts +++ b/types/project-name/project-name-tests.ts @@ -1,3 +1,3 @@ -import name from 'project-name'; +import name = require('project-name'); name('d'); // $ExpectType string \ No newline at end of file