Using the example from here I'm trying to get it working in TS, but TS doesn't seem to understand <CounterContext.Provider and throws all kinds of errors.
Does anyone know how to make this work?
import { createContext, createSignal, useContext } from "solid-js";
import type { ParentProps } from "solid-js";
const CounterContext = createContext<number>(0);
export function CounterProvider(props: ParentProps & { initialCount?: number }) {