mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
adds boolean as an acceptable suffix option
This commit is contained in:
@@ -2,3 +2,7 @@ import envPaths = require('env-paths');
|
||||
|
||||
// $ExpectType Paths
|
||||
envPaths('./');
|
||||
// $ExpectType Paths
|
||||
envPaths('./', {suffix: 'test'});
|
||||
// $ExpectType Paths
|
||||
envPaths('./', {suffix: false});
|
||||
|
||||
2
types/env-paths/index.d.ts
vendored
2
types/env-paths/index.d.ts
vendored
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user