Add abs.d.ts

This commit is contained in:
Aya Morisawa 2015-11-21 20:13:05 +09:00
parent b937e64fc9
commit d8bbe9f70d
2 changed files with 19 additions and 0 deletions

5
abs/abs-tests.ts Normal file
View File

@ -0,0 +1,5 @@
/// <reference path="./abs.d.ts" />
import Abs from 'abs';
const x: string = Abs('/foo');

14
abs/abs.d.ts vendored Normal file
View File

@ -0,0 +1,14 @@
// Type definitions for abs 1.1.0
// Project: https://github.com/IonicaBizau/node-abs
// Definitions by: Aya Morisawa <https://github.com/AyaMorisawa>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module "abs" {
/**
* Compute the absolute path of an input.
* @param input The input path.
*/
function Abs(input: string): string;
export default Abs;
}