This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { forwardRef, useImperativeHandle, useRef } from "react"; | |
| export interface VideoProps { | |
| source: string; | |
| } | |
| export interface VideoRef { | |
| play: () => void; | |
| pause: () => void; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export function invariant(condition: unknown, message: string): asserts condition { | |
| if (!condition) { | |
| throw new Error(message); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import type { ReactNode } from "react"; | |
| export type ObjectWithIdentifier = { | |
| id: number; | |
| }; | |
| export type ListProps<TItem> = { | |
| items: TItem[]; | |
| render: (item: TItem) => ReactNode; | |
| }; |
NewerOlder