diff --git a/packages/wouter/test/redirect.test-d.tsx b/packages/wouter/test/redirect.test-d.tsx new file mode 100644 index 00000000..59b91289 --- /dev/null +++ b/packages/wouter/test/redirect.test-d.tsx @@ -0,0 +1,17 @@ +import { describe, it, assertType } from "vitest"; +import { Redirect } from "wouter"; + +describe("Redirect types", () => { + it("should have required prop href", () => { + // @ts-expect-error + assertType(); + assertType(); + }); + + it("should support state prop", () => { + assertType(); + assertType(); + assertType(); + assertType(); + }); +});