{"version":3,"file":"util.cjs","sources":["../../src/libs/util.ts"],"sourcesContent":["import {\n  type PropsWithoutRef,\n  type ReactNode,\n  type Ref,\n  type RefAttributes,\n  forwardRef,\n} from 'react'\n\n/** forwardRef でジェネリクスを使うためのラッパー\n * via https://www.totaltypescript.com/forwardref-with-generic-components */\nexport const genericsForwardRef = <T, P = object>(\n  render: (props: PropsWithoutRef<P>, ref: Ref<T>) => ReactNode,\n): ((props: P & RefAttributes<T>) => ReactNode) => forwardRef(render) as any\n"],"names":["forwardRef"],"mappings":";;;;AAQA;AAC4E;AACrE,MAAM,kBAAkB,GAAG,CAChC,MAA6D,KACZA,gBAAU,CAAC,MAAM;;;;"}