mattpocock / ts-error-translator

VSCode extension to turn TypeScript errors into plain English
https://ts-error-translator.vercel.app
2.35k stars 90 forks source link

Translation request for 1005 #307

Closed jjship closed 1 month ago

jjship commented 1 month ago

Error Text

'...' expected.

Supporting Information

Please provide other information which led to this error, and any specific questions you have about it:

I'm getting the error on {children} in:

export function BoothContextProvider({ children }: { children: ReactNode }) {
  const [stage, setStage] = useState<number>(-1);
  const [currentLang, setCurrentLang] = useState<Language>("english");

  return (
    <BoothContext.Provider
      value={{
        stage,
        setStage,
        currentLang,
        setCurrentLang,
      }}
      {children}
    ></BoothContext.Provider>
  );
}
jjship commented 1 month ago

sorry, I see it now, always good to ask 🤣