xdg-basedir

This commit is contained in:
Tomek Łaziuk
2017-02-07 14:51:18 +01:00
parent 4033dffa4d
commit 1c2b6defd2
4 changed files with 35 additions and 0 deletions

11
xdg-basedir/index.d.ts vendored Normal file
View File

@@ -0,0 +1,11 @@
// Type definitions for xdg-basedir 2.0
// Project: https://github.com/sindresorhus/xdg-basedir
// Definitions by: Tomek Łaziuk <https://github.com/tlaziuk>
// 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[];

20
xdg-basedir/tsconfig.json Normal file
View File

@@ -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"
]
}

1
xdg-basedir/tslint.json Normal file
View File

@@ -0,0 +1 @@
{ "extends": "../tslint.json" }

View File

@@ -0,0 +1,3 @@
import * as xdg from 'xdg-basedir';
console.log(JSON.stringify(xdg, undefined, 2));