adds boolean as an acceptable suffix option

This commit is contained in:
Daniel Byrne
2018-09-05 15:05:42 -07:00
parent 83b529136c
commit 7bab89cf29
2 changed files with 5 additions and 1 deletions

View File

@@ -2,3 +2,7 @@ import envPaths = require('env-paths');
// $ExpectType Paths
envPaths('./');
// $ExpectType Paths
envPaths('./', {suffix: 'test'});
// $ExpectType Paths
envPaths('./', {suffix: false});

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 {