Skip to content

Commit

Permalink
Simplify types
Browse files Browse the repository at this point in the history
  • Loading branch information
zharinov committed Jan 21, 2025
1 parent 3ec81a0 commit 8e351c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/http/cache/repository-http-cache-provider.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getCache } from '../../cache/repository';
import { AbstractHttpCacheProvider } from './abstract-http-cache-provider';
import type { HttpCache } from './types';
import type { HttpCache } from './schema';

export class RepositoryHttpCacheProvider extends AbstractHttpCacheProvider {
override load(url: string): Promise<unknown> {
Expand Down
1 change: 1 addition & 0 deletions lib/util/http/cache/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ export const HttpCacheSchema = z
)
.nullable()
.catch(null);
export type HttpCache = z.infer<typeof HttpCacheSchema>;

0 comments on commit 8e351c3

Please # to comment.