Pyric
Navigate

API reference

pyric/app

16 published symbols from pyric

Generated from the TypeScript declarations shipped at this import path.

Check behavioral conformance

Classes

FirebaseError

Firebase-shaped error primitive shared by the sandbox client mirrors.

It lives below every service surface so mirrors can preserve cross-service instanceof FirebaseError identity without depending on the app composition root or loading the production SDK.

Extends

  • Error

Extended by

Constructors

Constructor
new FirebaseError(
   code: string,
   message: string,
   customData?: Record<string, unknown>): FirebaseError;
Parameters
ParameterType
codestring
messagestring
customData?Record<string, unknown>
Returns

FirebaseError

Overrides
Error.constructor

Properties

PropertyModifierTypeDefault valueOverrides
codereadonlystringundefined-
customData?readonlyRecord<string, unknown>undefined-
namereadonly"FirebaseError""FirebaseError"Error.name

Interfaces

FirebaseApp

Properties

PropertyModifierType
automaticDataCollectionEnabledpublicboolean
namereadonlystring
optionsreadonlyFirebaseOptions

FirebaseAppSettings

Properties

PropertyType
automaticDataCollectionEnabled?boolean
name?string

FirebaseOptions

Firebase-compatible public value types for pyric/app.

Properties

PropertyType
apiKey?string
appId?string
authDomain?string
databaseURL?string
measurementId?string
messagingSenderId?string
projectId?string
storageBucket?string

LogEntry

Properties

PropertyType
argsunknown[]
levelLogLevel
messagestring
typestring

LogOptions

Properties

PropertyType
levelLogLevel

Type Aliases

LogCallback()

type LogCallback = (entry: LogEntry) => void;

Parameters

ParameterType
entryLogEntry

Returns

void


LogLevel

type LogLevel = "debug" | "verbose" | "info" | "warn" | "error" | "silent";

Variables

SDK_VERSION

const SDK_VERSION: "12.13.0" = "12.13.0";

Firebase JS SDK version whose public app behavior the current oracle records. The app conformance replay makes this pin fail visibly when observations move.

Functions

deleteApp()

function deleteApp(app: FirebaseApp): Promise<void>;

Parameters

ParameterType
appFirebaseApp

Returns

Promise<void>


getApp()

function getApp(name?: string): FirebaseApp;

Parameters

ParameterType
name?string

Returns

FirebaseApp


getApps()

function getApps(): FirebaseApp[];

Returns

FirebaseApp[]


initializeApp()

function initializeApp(options?: FirebaseOptions, rawSettings?: string | FirebaseAppSettings): FirebaseApp;

Parameters

ParameterType
options?FirebaseOptions
rawSettings?string | FirebaseAppSettings

Returns

FirebaseApp


onLog()

function onLog(callback: LogCallback, options?: LogOptions): void;

Register or clear the process-wide app diagnostic handler.

Parameters

ParameterType
callbackLogCallback
options?LogOptions

Returns

void


registerVersion()

function registerVersion(
   libraryKeyOrName: string,
   version: string,
   variant?: string): void;

Validate a platform-logger version registration.

A sandbox has no production component container, so valid registrations need no retained component. Invalid registrations still emit the exact diagnostic warning consumers can observe from Firebase.

Parameters

ParameterType
libraryKeyOrNamestring
versionstring
variant?string

Returns

void


setLogLevel()

function setLogLevel(level: LogLevel): void;

Set the threshold used by the app diagnostics logger.

Parameters

ParameterType
levelLogLevel

Returns

void