Summary: Convert serialization to typescript. I tried to type the deserialize function but don't know enough about the expected format to be able to tell what the types should be. Reviewed By: passy Differential Revision: D16785945 fbshipit-source-id: 45de7ee1c8972314a52abcf20d428ba44f031a00