import type { IfExtends } from "hry-types/src/Any/_api"; import type { ComputeIntersection } from "hry-types/src/Object/_api"; import type { ComponentDoc } from "../api/DefineComponent/returnType/ComponentDoc"; import type { AddPrefix } from "./AddPrefix"; type ErrMsg = "{ properties?: Record; events?: Record; }"; type Validator = keyof T extends "properties" | "events" ? ComponentDoc : ErrMsg; export type CreateComponentDoc> = T extends ComponentDoc ? ComputeIntersection; }> & IfExtends; }>> : ErrMsg; export {};