diff --git a/xdg-basedir/index.d.ts b/xdg-basedir/index.d.ts new file mode 100644 index 0000000000..d18bc389f9 --- /dev/null +++ b/xdg-basedir/index.d.ts @@ -0,0 +1,11 @@ +// Type definitions for xdg-basedir 2.0 +// Project: https://github.com/sindresorhus/xdg-basedir +// Definitions by: Tomek Łaziuk +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export const data: string | null; +export const config: string | null; +export const cache: string | null; +export const runtime: string | null; +export const dataDirs: string[]; +export const configDirs: string[]; diff --git a/xdg-basedir/tsconfig.json b/xdg-basedir/tsconfig.json new file mode 100644 index 0000000000..44428e6cc7 --- /dev/null +++ b/xdg-basedir/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "xdg-basedir-tests.ts" + ] +} diff --git a/xdg-basedir/tslint.json b/xdg-basedir/tslint.json new file mode 100644 index 0000000000..377cc837d4 --- /dev/null +++ b/xdg-basedir/tslint.json @@ -0,0 +1 @@ +{ "extends": "../tslint.json" } diff --git a/xdg-basedir/xdg-basedir-tests.ts b/xdg-basedir/xdg-basedir-tests.ts new file mode 100644 index 0000000000..a6b7073c18 --- /dev/null +++ b/xdg-basedir/xdg-basedir-tests.ts @@ -0,0 +1,3 @@ +import * as xdg from 'xdg-basedir'; + +console.log(JSON.stringify(xdg, undefined, 2));