mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-04 17:20:09 +00:00
Modified export sytax
This commit is contained in:
5
types/project-name/index.d.ts
vendored
5
types/project-name/index.d.ts
vendored
@@ -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;
|
||||
@@ -1,3 +1,3 @@
|
||||
import name from 'project-name';
|
||||
import name = require('project-name');
|
||||
|
||||
name('d'); // $ExpectType string
|
||||
Reference in New Issue
Block a user