Skip to content

Commit e23782d

Browse files
@jotadevelopersergiohgz
authored andcommitted
feat: add types for search class
1 parent fe6a072 commit e23782d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

core/types/src/types.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ declare type verdaccio$Config = {
239239
user_agent: string;
240240
server_id: any;
241241
storage: string;
242+
secret: string;
242243
self_path: string;
243244
packages: verdaccio$PackageList;
244245
uplinks: verdaccio$UpLinksConfList;
@@ -383,6 +384,23 @@ declare module "@verdaccio/types" {
383384
isUplinkValid(url: string): boolean;
384385
}
385386

387+
declare export interface IAuth {
388+
config: verdaccio$Config;
389+
logger: verdaccio$Logger;
390+
secret: string;
391+
plugins: Array<any>;
392+
}
393+
394+
declare export interface IWebSearch {
395+
index: any;
396+
storage: IStorageHandler;
397+
query(query: string): any;
398+
add(pkg: Version): void;
399+
remove(name: string): void;
400+
reindex(): void;
401+
configureStorage(storage: IStorageHandler): void;
402+
}
403+
386404
declare export interface IStorageHandler {
387405
config: Config;
388406
localStorage: IStorage;

0 commit comments

Comments
 (0)