Optimize rendering
This commit is contained in:
parent
81f06e2404
commit
12c78c742f
34 changed files with 702 additions and 444 deletions
|
@ -35,3 +35,19 @@ export enum ScrollBehavior {
|
|||
Default = 'default',
|
||||
Hard = 'hard',
|
||||
}
|
||||
|
||||
type InternalAssertProps<
|
||||
Result,
|
||||
Value,
|
||||
Missing = Omit<Result, keyof Value>
|
||||
> = keyof Missing extends never
|
||||
? Result
|
||||
: Result &
|
||||
{
|
||||
[key in keyof Required<Missing>]: [
|
||||
never,
|
||||
'AssertProps: missing property'
|
||||
];
|
||||
};
|
||||
|
||||
export type AssertProps<Result, Value> = InternalAssertProps<Result, Value>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue