import { StorageStrategies } from './constants/strategy' ; import { DecoratorBuilder } from './helpers/decoratorBuilder' ; export function LocalStorage ( key ? , defaultValue ? ) { return function ( prototype , propName ) { DecoratorBuilder . buildSyncStrategyDecorator ( StorageStrategies . Local , prototype , propName , key , defaultValue ) ; } ; } export function SessionStorage ( key ? , defaultValue ? ) { return function ( prototype , propName ) { DecoratorBuilder . buildSyncStrategyDecorator ( StorageStrategies . Session , prototype , propName , key , defaultValue ) ; } ; }