UNPKG

@versatiledatakit/shared

Version:

Versatile Data Kit Shared library enables reusability of shared features like: NgRx Redux, Error Handlers, Utils, Generic Components, etc.

11 lines (10 loc) 717 B
import { FilterMethods } from '../../utils'; import { ErrorCodes, ExcludedMethods } from '../../common'; /** * ** Generates error codes for provided method names. * * - !!! Important: Only for Unit tests purposes, not for production. * * - Optionally could be provided ClassName and PublicName, otherwise will be auto-generated random strings. */ export declare const generateErrorCodes: <CType>(serviceStub: CType, methodNames: import("../../utils").FilterMethodNames<CType, ExcludedMethods>[], className?: string, publicName?: string) => Readonly<Record<import("../../utils").FilterMethodNames<CType, ExcludedMethods>, Readonly<Record<keyof import("../../common").ServiceHttpErrorCodes, string>>>>;