mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
adds typings for the 'env-paths' package
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
import envPaths = require('env-paths');
|
||||
|
||||
// $ExpectType Paths
|
||||
envPaths('./');
|
||||
Vendored
+18
@@ -0,0 +1,18 @@
|
||||
// Type definitions for env-paths 1.0
|
||||
// Project: https://github.com/sindresorhus/env-paths
|
||||
// Definitions by: Daniel Byrne <https://github.com/danwbyrne>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = envPaths;
|
||||
|
||||
declare function envPaths(name: string, opts?: { suffix: string; }): envPaths.Paths;
|
||||
|
||||
declare namespace envPaths {
|
||||
interface Paths {
|
||||
readonly data: string;
|
||||
readonly config: string;
|
||||
readonly cache: string;
|
||||
readonly log: string;
|
||||
readonly temp: string;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": ["es6"],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": false,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": ["../"],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"env-paths-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
Reference in New Issue
Block a user