Skip to content

Commit

Permalink
fix(typescript): undefined return for DefaultPolicy.get and Checks.get
Browse files Browse the repository at this point in the history
  • Loading branch information
adriencohen committed May 14, 2020
1 parent 84596d1 commit b61e9d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1505,15 +1505,15 @@ export class Provider extends events.EventEmitter {
export default Provider;

declare class Checks extends Array<interactionPolicy.Check> {
get(name: string): interactionPolicy.Check;
get(name: string): interactionPolicy.Check | undefined;
remove(name: string): void;
clear(): void;
add(prompt: interactionPolicy.Check, index?: number): void;
}

export namespace interactionPolicy {
interface DefaultPolicy extends Array<interactionPolicy.Prompt> {
get(name: string): interactionPolicy.Prompt;
get(name: string): interactionPolicy.Prompt | undefined;
remove(name: string): void;
clear(): void;
add(prompt: interactionPolicy.Prompt, index?: number): void;
Expand Down

0 comments on commit b61e9d8

Please sign in to comment.