From 1c2b6defd2d31dfa01a53167a22235b0ca65d508 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomek=20=C5=81aziuk?= Date: Tue, 7 Feb 2017 14:51:18 +0100 Subject: [PATCH] xdg-basedir --- xdg-basedir/index.d.ts | 11 +++++++++++ xdg-basedir/tsconfig.json | 20 ++++++++++++++++++++ xdg-basedir/tslint.json | 1 + xdg-basedir/xdg-basedir-tests.ts | 3 +++ 4 files changed, 35 insertions(+) create mode 100644 xdg-basedir/index.d.ts create mode 100644 xdg-basedir/tsconfig.json create mode 100644 xdg-basedir/tslint.json create mode 100644 xdg-basedir/xdg-basedir-tests.ts 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));