UNPKG

naive-ui

Version:

A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast

10 lines (9 loc) 469 B
import type { ExtractPropTypes } from 'vue'; import type { useTheme } from '../../_mixins'; type themePropKeys = keyof typeof useTheme.props; type RemoveReadonly<T> = { -readonly [key in keyof T]: T[key]; }; export type ExtractPublicPropTypes<T> = Omit<Partial<RemoveReadonly<ExtractPropTypes<T>>>, Exclude<themePropKeys, 'themeOverrides'> | Extract<keyof T, `internal${string}`>>; export type ExtractInternalPropTypes<T> = Partial<ExtractPropTypes<T>>; export {};