mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Add abs.d.ts
This commit is contained in:
parent
b937e64fc9
commit
d8bbe9f70d
5
abs/abs-tests.ts
Normal file
5
abs/abs-tests.ts
Normal 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
14
abs/abs.d.ts
vendored
Normal 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;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user