Skip to content

Commit

Permalink
chore: run npm pretty
Browse files Browse the repository at this point in the history
  • Loading branch information
icco committed Sep 19, 2024
1 parent 796c019 commit ee6cd9e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
6 changes: 3 additions & 3 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ export interface SrcSetOptions {
}

export interface _sanitizePathOptions {
disablePathEncoding?: boolean,
encoder?: (path: string) => string
disablePathEncoding?: boolean;
encoder?: (path: string) => string;
}

export interface _buildParamsOptions {
encoder?: (value: string, key?: string) => string
encoder?: (value: string, key?: string) => string;
}

export default ImgixClient;
11 changes: 9 additions & 2 deletions types/index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,17 @@ params = {};
expectType<string>(client.buildURL('foo/bar/baz', params, buildURLOptions));

expectType<string>(client._sanitizePath(path));
expectType<string>(client._sanitizePath(path, { disablePathEncoding: true, encoder: (path) => path }));
expectType<string>(
client._sanitizePath(path, {
disablePathEncoding: true,
encoder: (path) => path,
}),
);

expectType<string>(client._buildParams(params));
expectType<string>(client._buildParams(params, { encoder: (value, key) => value }));
expectType<string>(
client._buildParams(params, { encoder: (value, key) => value }),
);

expectType<string>(client._signParams(path, params));

Expand Down

0 comments on commit ee6cd9e

Please sign in to comment.