import type { IfEquals, IfExtends } from "hry-types/src/Any/_api"; import type { Includes } from "../../../types/includes"; export type NameOrPathOption = IsPage extends true ? { path: TPath; } : { name: TName & IfExtends "⚠️组件名不可为空⚠️", IfEquals, true, () => "⚠️组件名不可包含下划线或空格⚠️", unknown>>; };