FP-Devicer - v3.0.0
    Preparing search index...

    Interface NextObservationStore<TFeatures>

    interface NextObservationStore<
        TFeatures extends Record<string, unknown> = Record<string, unknown>,
    > {
        all(): Promise<readonly Observation<TFeatures>[]>;
        get(id: string): Promise<Observation<TFeatures> | undefined>;
        remove(id: string): Promise<boolean>;
        restore(snapshot: NextSnapshot<TFeatures>): Promise<void>;
        save(observation: Observation<TFeatures>): Promise<void>;
        snapshot(): Promise<NextSnapshot<TFeatures>>;
        transaction<TResult>(
            operation: (
                store: NextObservationStore<TFeatures>,
            ) => TResult | Promise<TResult>,
        ): Promise<TResult>;
    }

    Type Parameters

    • TFeatures extends Record<string, unknown> = Record<string, unknown>

    Hierarchy (View Summary)

    Index

    Methods

    • Parameters

      • id: string

      Returns Promise<boolean>