UNPKG

egreact

Version:

A react render for egret 一个为 egret 而生的 react 渲染器

12 lines (11 loc) 546 B
/// <reference types="react" /> import { TransProp } from '../Host/index'; import customProps from '../Host/custom'; import egretProps from '../Host/egret'; export declare function Primitive<K extends new (...args: any) => any, T = any>(props: ({ object: T; } | { constructor: K; }) & TransProp<typeof egretProps.displayObject> & TransProp<typeof customProps.primitive> & { [Key in keyof (Partial<T> & Partial<InstanceType<K>>) as Key extends `$${string}` ? null : Key]: (Partial<T> & Partial<InstanceType<K>>)[Key]; }): JSX.Element;