Skip to content
This repository has been archived by the owner on Sep 14, 2019. It is now read-only.

Add TypeScript typings #33

Merged
merged 3 commits into from
Jun 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
declare module 'probot-config' {
import { Context } from 'probot';
import { Options as DeepMergeOptions } from 'deepmerge';

export default function getConfig<T>(
context: Context,
fileName: string,
defaultConfig?: T,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm unsure if this should be T or Partial<T>

deepMergeOptions?: DeepMergeOptions
): Promise<T>;
}
Loading