UNPKG

@tsed/platform-test-sdk

Version:
43 lines (42 loc) 1.12 kB
import { PlatformTestingSdkOpts } from "../interfaces/index.js"; export declare class Resource { id: string; name: string; } export declare class BaseController<T extends { id: string; }> { resources: T[]; get(id: string): Promise<any>; list(): Promise<any[]>; } export declare class ResourcesCtrl extends BaseController<Resource> { resources: { id: string; name: string; }[]; get(id: string): Promise<any>; post(resource: Resource): Resource; } declare abstract class AttachmentController { getAll(parentID: string): string; } export declare class FindingsController extends AttachmentController { get(): string; } export declare abstract class TestBaseController { scenario3(search: string): { search: string; }; scenario5(q: string): { data: string; }; } export declare class TestChildController extends TestBaseController { scenario4(id: string): any; scenario5(s: string): { data: string; }; } export declare function testInheritanceController(options: PlatformTestingSdkOpts): void; export {};