From 383285ecd5292bf9a825e05904955b937de84cc9 Mon Sep 17 00:00:00 2001 From: Minteck Date: Sat, 4 Jun 2022 08:51:01 +0200 Subject: Initial commit --- node_modules/has-yarn/index.d.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 node_modules/has-yarn/index.d.ts (limited to 'node_modules/has-yarn/index.d.ts') diff --git a/node_modules/has-yarn/index.d.ts b/node_modules/has-yarn/index.d.ts new file mode 100644 index 0000000..5e2af4c --- /dev/null +++ b/node_modules/has-yarn/index.d.ts @@ -0,0 +1,16 @@ +declare const hasYarn: { + /** + * Check if a project is using [Yarn](https://yarnpkg.com). + * + * @param cwd - Current working directory. Default: `process.cwd()`. + * @returns Whether the project uses Yarn. + */ + (cwd?: string): boolean; + + // TODO: Remove this for the next major release, refactor the whole definition to: + // declare function hasYarn(cwd?: string): boolean; + // export = hasYarn; + default: typeof hasYarn; +}; + +export = hasYarn; -- cgit