pre-installations and preparations
This commit is contained in:
1 parent
3e5a0329cb
commit
201d621ac3
6977 files changed
+742826
No files matched your search
+12
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Add keys, values of `defaultProps` that does not exist in `props`
|
||||
* @param {object} defaultProps
|
||||
* @param {object} props
|
||||
* @returns {object} resolved props
|
||||
*/
|
||||
export default function resolveProps<T extends {
|
||||
components?: Record<string, unknown>;
|
||||
componentsProps?: Record<string, unknown>;
|
||||
slots?: Record<string, unknown>;
|
||||
slotProps?: Record<string, unknown>;
|
||||
} & Record<string, unknown>>(defaultProps: T, props: T): T;
|
||||
Reference in new issue
Block a user