UNPKG

@techmely/utils

Version:

Collection of helpful JavaScript / TypeScript utils

9 lines (6 loc) 374 B
import { ComputeRange } from '@techmely/types'; declare function isHex(hex: string): boolean; declare function percentToHex(percent: ComputeRange<MAXIMUM_ALLOWED_BOUNDARY>[number]): string; declare function alphaHex(hex: string, alpha: ComputeRange<MAXIMUM_ALLOWED_BOUNDARY>[number]): string; type MAXIMUM_ALLOWED_BOUNDARY = 101; export { alphaHex, isHex, percentToHex };