fix typescript definition for freedom storage