UNPKG

cnpmcore

Version:

Private NPM Registry for Enterprise

18 lines (17 loc) 809 B
import type { Static } from '@eggjs/typebox-validate/typebox'; import { Context } from 'egg'; import type { SearchQueryOptions } from '../../typebox.ts'; import { AbstractController } from '../AbstractController.ts'; export declare class SearchPackageController extends AbstractController { private readonly packageSearchService; search(ctx: Context, text: Static<typeof SearchQueryOptions>['text'], from: Static<typeof SearchQueryOptions>['from'], size: Static<typeof SearchQueryOptions>['size']): Promise<{ objects: (import("../../../repository/SearchRepository.ts").SearchManifestType | undefined)[]; total: number; }>; sync(fullname: string): Promise<{ package: string | undefined; }>; delete(fullname: string): Promise<{ package: string; }>; }