refactor(components): [scrollbar] simplify emits type checking (#8281)

This commit is contained in:
류한경
2022-06-16 06:15:37 +09:00
committed by GitHub
parent eace0489ea
commit efbd80ff80

View File

@@ -48,7 +48,7 @@ export const scrollbarEmits = {
}: {
scrollTop: number
scrollLeft: number
}) => isNumber(scrollTop) && isNumber(scrollLeft),
}) => [scrollTop, scrollLeft].every(isNumber),
}
export type ScrollbarEmits = typeof scrollbarEmits