import { DatabaseDriver } from './database-driver' ; export class LocalDatabase implements DatabaseDriver { type { object } protected storage = { } ; param { any } options constructor ( protected options ) { } param { string } key return { Promise < any > } get ( key ) { return new Promise ( resolve => resolve ( this . storage [ key ] || null ) ) ; } param { string } key param { any } value return { void } set ( key , value ) { this . storage [ key ] = value ; } }