Merge pull request #28656 from danwbyrne/update-env-paths

adds `boolean` as an acceptable `suffix` option
This commit is contained in:
Sana Ajani
2018-09-07 15:50:18 -07:00
committed by GitHub
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -2,3 +2,7 @@ import envPaths = require('env-paths');
// $ExpectType Paths
envPaths('./');
// $ExpectType Paths
envPaths('./', {suffix: 'test'});
// $ExpectType Paths
envPaths('./', {suffix: false});
+1 -1
View File
@@ -5,7 +5,7 @@
export = envPaths;
declare function envPaths(name: string, opts?: { suffix: string; }): envPaths.Paths;
declare function envPaths(name: string, opts?: { suffix: string | false }): envPaths.Paths;
declare namespace envPaths {
interface Paths {