Back to Apollo Client

Api Report Utilities Invariant.Api

.api-reports/api-report-utilities_invariant.api.md

3.14.11.7 KB
Original Source

API Report File for "@apollo/client"

Do not edit this file. It is a report generated by API Extractor.

ts

// @public (undocumented)
export const ApolloErrorMessageHandler: unique symbol;

// @public (undocumented)
export function invariant(condition: any, ...args: [message?: string | number, ...any[]]): asserts condition;

// @public (undocumented)
export namespace invariant {
    var // (undocumented)
    debug: {
        (...data: any[]): void;
        (message?: any, ...optionalParams: any[]): void;
    };
    var // (undocumented)
    log: {
        (...data: any[]): void;
        (message?: any, ...optionalParams: any[]): void;
    };
    var // (undocumented)
    warn: {
        (...data: any[]): void;
        (message?: any, ...optionalParams: any[]): void;
    };
    var // (undocumented)
    error: {
        (...data: any[]): void;
        (message?: any, ...optionalParams: any[]): void;
    };
}

// @public (undocumented)
export class InvariantError extends Error {
    constructor(message?: string);
}

// @public
export function newInvariantError(message?: string | number, ...optionalParams: unknown[]): InvariantError;

// Warning: (ae-forgotten-export) The symbol "VerbosityLevel" needs to be exported by the entry point index.d.ts
//
// @public (undocumented)
export function setVerbosity(level: VerbosityLevel): VerbosityLevel;

// Warning: (ae-forgotten-export) The symbol "verbosityLevels" needs to be exported by the entry point index.d.ts
//
// @public (undocumented)
type VerbosityLevel = (typeof verbosityLevels)[number];

// @public (undocumented)
const verbosityLevels: readonly ["debug", "log", "warn", "error", "silent"];

// (No @packageDocumentation comment for this package)