Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Aug 9, 2023
1 parent e872452 commit 8c467ed
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Thrown when the public IP address could not be found.
*/
export class IpNotFoundError extends Error {}

export interface Options {
export type Options = {
/**
Use a HTTPS check using the [icanhazip.com](https://github.com/major/icanhaz) service instead of the DNS query. [ipify.org](https://www.ipify.org) is used as a fallback if `icanhazip.com` fails. This check is much more secure and tamper-proof, but also a lot slower.
Expand Down Expand Up @@ -39,7 +39,7 @@ export interface Options {
```
*/
readonly fallbackUrls?: readonly string[];
}
};

export type CancelablePromise<T> = Promise<T> & {
cancel(): void;
Expand Down
2 changes: 1 addition & 1 deletion index.test-d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {expectType} from 'tsd';
import {publicIp, publicIpv4, publicIpv6, CancelablePromise} from './index.js';
import {publicIp, publicIpv4, publicIpv6, type CancelablePromise} from './index.js';

expectType<CancelablePromise<string>>(publicIpv4());
expectType<CancelablePromise<string>>(publicIpv4({onlyHttps: true}));
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"sinon": "^14.0.0",
"time-span": "^5.0.0",
"tsd": "^0.21.0",
"xo": "^0.50.0"
"xo": "^0.54.0"
},
"xo": {
"envs": [
Expand Down

0 comments on commit 8c467ed

Please sign in to comment.