Teleforge API Reference - v0.1.0
    Preparing search index...

    Interface CloudStorage

    interface CloudStorage {
        getItem(
            key: string,
            callback?: (error: Error | null, value: string | null) => void,
        ): void;
        getItems(
            keys: string[],
            callback?: (error: Error | null, values: Record<string, string>) => void,
        ): void;
        removeItem(
            key: string,
            callback?: (error: Error | null, success: boolean) => void,
        ): void;
        removeItems(
            keys: string[],
            callback?: (error: Error | null, success: boolean) => void,
        ): void;
        setItem(
            key: string,
            value: string,
            callback?: (error: Error | null, success: boolean) => void,
        ): void;
    }
    Index

    Methods

    • Parameters

      • key: string
      • Optionalcallback: (error: Error | null, value: string | null) => void

      Returns void

    • Parameters

      • keys: string[]
      • Optionalcallback: (error: Error | null, values: Record<string, string>) => void

      Returns void

    • Parameters

      • key: string
      • Optionalcallback: (error: Error | null, success: boolean) => void

      Returns void

    • Parameters

      • keys: string[]
      • Optionalcallback: (error: Error | null, success: boolean) => void

      Returns void

    • Parameters

      • key: string
      • value: string
      • Optionalcallback: (error: Error | null, success: boolean) => void

      Returns void