matthew-matvei/freeman

View on GitHub
src/renderer/objects/IPersister.ts

Summary

Maintainability
A
0 mins
Test Coverage
/** The interface describing a Persister. */
interface IPersister {

    /**
     * Stores the given value at the given key.
     *
     * @param key the key at which to store the given value
     * @param value any JSONifiable value to be stored
     */
    set<T>(key: string, value: T): void;

    /**
     * Retrieves a value at the given key.
     *
     * @param key the key at which to retrieve a value
     *
     * @returns the value at the given key
     */
    get<T>(key: string): T;
}

export default IPersister;