UNPKG

@fox-hound-tools/refine-library

Version:

Refine sdk library

27 lines (26 loc) 1.17 kB
import { type AdditionalDataHolder, type ApiError, type Parsable, type ParseNode } from '@microsoft/kiota-abstractions'; /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {MainError} */ export declare function createMainErrorFromDiscriminatorValue(parseNode: ParseNode | undefined): (instance?: Parsable) => Record<string, (node: ParseNode) => void>; /** * The deserialization information for the current model * @returns {Record<string, (node: ParseNode) => void>} */ export declare function deserializeIntoMainError(mainError?: Partial<MainError> | undefined): Record<string, (node: ParseNode) => void>; export interface MainError extends AdditionalDataHolder, ApiError, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ additionalData?: Record<string, unknown>; /** * The code property */ code?: number | null; /** * The error message */ messsage?: string | null; }