芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/app.optimyar.com/backend/node_modules/@casl/ability/dist/types/ForbiddenError.d.ts
import { AnyAbility } from './PureAbility'; import { Normalize } from './types'; import { Generics } from './RuleIndex'; export declare type GetErrorMessage = (error: ForbiddenError
) => string; export declare const getDefaultErrorMessage: GetErrorMessage; declare const NativeError: new (message: string) => Error; export declare class ForbiddenError
extends NativeError { readonly ability: T; action: Normalize
['abilities']>[0]; subject: Generics
['abilities'][1]; field?: string; subjectType: string; static _defaultErrorMessage: GetErrorMessage; static setDefaultMessage(messageOrFn: string | GetErrorMessage): void; static from
(ability: T): ForbiddenError
; private constructor(); setMessage(message: string): this; throwUnlessCan(...args: Parameters
): void; } export {};