Skip to content

Commit

Permalink
Merge pull request #51 from RomanGotsiy/patch-1
Browse files Browse the repository at this point in the history
Fix ts typings for resolve.http and resolve.file
  • Loading branch information
JamesMessinger authored Jan 11, 2018
2 parents 707e626 + 41e6f58 commit 3f5fbc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ declare namespace $RefParser {
* Determines whether external $ref pointers will be resolved. If this option is disabled, then external `$ref` pointers will simply be ignored.
*/
external?: boolean
file?: ResolverOptions | boolean
file?: Partial<ResolverOptions> | boolean
http?: HTTPResolverOptions | boolean
}

Expand All @@ -141,7 +141,7 @@ declare namespace $RefParser {
}
}

export interface HTTPResolverOptions extends ResolverOptions {
export interface HTTPResolverOptions extends Partial<ResolverOptions> {

/**
* You can specify any HTTP headers that should be sent when downloading files. For example, some servers may require you to set the `Accept` or `Referrer` header.
Expand Down

0 comments on commit 3f5fbc0

Please sign in to comment.