We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b937e64 commit d8bbe9fCopy full SHA for d8bbe9f
abs/abs-tests.ts
@@ -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
@@ -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
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