mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-06-19 12:15:27 -04:00
do react types more better too 🧠
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { cn } from "@/lib/utils";
|
||||
import type { ComponentPropsWithoutRef } from "react";
|
||||
|
||||
const Video = ({
|
||||
src,
|
||||
@@ -7,7 +6,7 @@ const Video = ({
|
||||
className,
|
||||
children,
|
||||
...rest
|
||||
}: Omit<Partial<ComponentPropsWithoutRef<"video">>, "src"> & {
|
||||
}: Omit<Partial<React.ComponentProps<"video">>, "src"> & {
|
||||
src: string | string[] | undefined;
|
||||
}) => {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user