Skip to content

Commit d8bbe9f

Browse files
committed
Add abs.d.ts
1 parent b937e64 commit d8bbe9f

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

abs/abs-tests.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/// <reference path="./abs.d.ts" />
2+
3+
import Abs from 'abs';
4+
5+
const x: string = Abs('/foo');

abs/abs.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Type definitions for abs 1.1.0
2+
// Project: https://github.com/IonicaBizau/node-abs
3+
// Definitions by: Aya Morisawa <https://github.com/AyaMorisawa>
4+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5+
6+
declare module "abs" {
7+
/**
8+
* Compute the absolute path of an input.
9+
* @param input The input path.
10+
*/
11+
function Abs(input: string): string;
12+
13+
export default Abs;
14+
}

0 commit comments

Comments
 (0)