diff --git a/types/parse-git-config/index.d.ts b/types/parse-git-config/index.d.ts index b3302106b0..3ca55b897a 100644 --- a/types/parse-git-config/index.d.ts +++ b/types/parse-git-config/index.d.ts @@ -39,7 +39,7 @@ interface Parse { /** * Returns an object with only the properties that had ini-style keys converted to objects. */ - keys(config: Config): Config; + expandKeys(config: Config): Config; } // no-empty-interface is disabled for a better debugging experience. Empty interfaces are used to alias a type alias. @@ -49,6 +49,8 @@ interface Options extends Pick<_Options, keyof _Options> { } interface _Options { cwd: string; path: string; + include?: boolean; + expandKeys?: boolean; } type ParseCallback = ((err: Error | null, config: Config) => void); diff --git a/types/parse-git-config/parse-git-config-tests.ts b/types/parse-git-config/parse-git-config-tests.ts index c5ce43040a..a6d2a4c983 100644 --- a/types/parse-git-config/parse-git-config-tests.ts +++ b/types/parse-git-config/parse-git-config-tests.ts @@ -99,12 +99,12 @@ function test_sync() { } } -function test_keys() { +function test_expandKeys() { const config = { 'foo "bar"': { doStuff: true }, 'foo "baz"': { doStuff: true } }; - const keys = parse.keys(config); + const keys = parse.expandKeys(config); keys.foo.bar.doStuff === true; keys.foo.baz.doStuff === true;