Modified export sytax

This commit is contained in:
Ajil Oommen
2019-04-08 09:32:46 +05:30
parent 479ec34950
commit 552880ccfa
2 changed files with 4 additions and 3 deletions

View File

@@ -3,8 +3,9 @@
// Definitions by: Ajil Oommen <https://github.com/ajilo297/>
// 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;
declare function index(cwd: string): string;

View File

@@ -1,3 +1,3 @@
import name from 'project-name';
import name = require('project-name');
name('d'); // $ExpectType string