message: fix useLocalStorageState type definition
diff: import { useState } from 'react';
  export default function useLocalStorageState<T = string>(key: string, defaultValue?: T) {
  - const [state, setState] = useState<T | undefined>(() =>
  - (localStorage.getItem(key) === null ? defaultValue : JSON.parse(localStorage.getItem(key)!)),
  + const [state, setState] = useState(
  + () =>
  + (localStorage.getItem(key) === null
  + ? defaultValue
  + : JSON.parse(localStorage.getItem(key)!)) as T,
  );
  function updateState(value?: T) {
  if (value === undefined) {
  localStorage.removeItem(key);
  - setState(defaultValue);
  + setState(defaultValue as T);
  } else {
  localStorage.setItem(key, JSON.stringify(value));
  setState(value);
  