perf: add truthProp util (#8522)
* perf: add TruthyProp util * chore: rename * chore: upd
This commit is contained in:
+6
-2
@@ -6,8 +6,12 @@ export const extend = Object.assign;
|
||||
|
||||
export const inBrowser = typeof window !== 'undefined';
|
||||
|
||||
// unknown type for Vue prop
|
||||
export const UnknownProp = (null as unknown) as PropType<unknown>;
|
||||
// PropTypes
|
||||
export const unknownProp = (null as unknown) as PropType<unknown>;
|
||||
export const truthProp = {
|
||||
type: Boolean,
|
||||
default: true as const,
|
||||
};
|
||||
|
||||
// eslint-disable-next-line
|
||||
export type ComponentInstance = ComponentPublicInstance<{}, any>;
|
||||
|
||||
Reference in New Issue
Block a user