Skip to content

Commit 3f5fbc0

Browse files
Merge pull request APIDevTools#51 from RomanGotsiy/patch-1
Fix ts typings for resolve.http and resolve.file
2 parents 707e626 + 41e6f58 commit 3f5fbc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ declare namespace $RefParser {
121121
* Determines whether external $ref pointers will be resolved. If this option is disabled, then external `$ref` pointers will simply be ignored.
122122
*/
123123
external?: boolean
124-
file?: ResolverOptions | boolean
124+
file?: Partial<ResolverOptions> | boolean
125125
http?: HTTPResolverOptions | boolean
126126
}
127127

@@ -141,7 +141,7 @@ declare namespace $RefParser {
141141
}
142142
}
143143

144-
export interface HTTPResolverOptions extends ResolverOptions {
144+
export interface HTTPResolverOptions extends Partial<ResolverOptions> {
145145

146146
/**
147147
* 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.

0 commit comments

Comments
 (0)