UnlyEd/next-right-now

View on GitHub
src/modules/core/serializeSafe/deserializeSafe.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { parse as parseSafe } from 'flatted';

export const deserializeSafe = <T>(serializedValue: string): T => {
  return parseSafe(serializedValue);

};

export default deserializeSafe;