mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
16 lines
550 B
TypeScript
16 lines
550 B
TypeScript
// Type definitions for expand-tilde 2.0
|
|
// Project: https://github.com/jonschlinkert/expand-tilde
|
|
// Definitions by: Chris Arnesen <https://github.com/carnesen>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/**
|
|
* Bash-like tilde expansion for node.js.
|
|
* Expands a leading tilde (~) in a file path to the user home directory, or ~+ to the cwd.
|
|
*
|
|
* @param {string} filePath - a file path to expand
|
|
* @returns {string} the expanded file path
|
|
*/
|
|
declare function expandTilde(filePath: string): string;
|
|
|
|
export = expandTilde;
|