UNPKG

zarm

Version:

基于 React 的移动端UI库

11 lines (10 loc) 501 B
import * as React from 'react'; export declare type Nullable<T> = T | null; export declare type StringPropertyNames<T> = { [K in keyof T]: T[K] extends string ? K : never; }[keyof T]; export declare type Replace<S extends string, MatchStr extends string, ReplaceStr extends string> = S extends `${infer Left}${MatchStr}${infer Right}` ? `${Left}${ReplaceStr}${Right}` : S; export interface HTMLProps<T extends object = {}> { className?: string; style?: React.CSSProperties & Partial<T>; }