mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-13 22:40:50 +08:00
xdg-basedir
This commit is contained in:
11
xdg-basedir/index.d.ts
vendored
Normal file
11
xdg-basedir/index.d.ts
vendored
Normal 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
20
xdg-basedir/tsconfig.json
Normal 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
1
xdg-basedir/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "../tslint.json" }
|
||||
3
xdg-basedir/xdg-basedir-tests.ts
Normal file
3
xdg-basedir/xdg-basedir-tests.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import * as xdg from 'xdg-basedir';
|
||||
|
||||
console.log(JSON.stringify(xdg, undefined, 2));
|
||||
Reference in New Issue
Block a user