import { Storage } from './Storage' ; import { keyType } from './types' ; const undefined_as_any = undefined ; param key export function getState < S = any , K = string > ( key ) { const store = Storage . get < S > ( key ) ; return store ? store . state : undefined_as_any ; }