isPositiveInteger() — tailwindcss Function Reference
Architecture documentation for the isPositiveInteger() function in infer-data-type.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 4eec17e9_9a96_168a_2273_b6e64e229816["isPositiveInteger()"] 9b136014_1c89_69bd_c68a_71707da43497["tryValueReplacements()"] 9b136014_1c89_69bd_c68a_71707da43497 -->|calls| 4eec17e9_9a96_168a_2273_b6e64e229816 c17298f2_5925_766a_629e_a0acb211713d["modernizeArbitraryValuesVariant()"] c17298f2_5925_766a_629e_a0acb211713d -->|calls| 4eec17e9_9a96_168a_2273_b6e64e229816 a241a318_f7dc_56c3_4480_d0ed4eba0896["bareIntegers()"] a241a318_f7dc_56c3_4480_d0ed4eba0896 -->|calls| 4eec17e9_9a96_168a_2273_b6e64e229816 b6d0c03e_d4d3_d8e2_c18a_81dbd20e2d9c["barePercentages()"] b6d0c03e_d4d3_d8e2_c18a_81dbd20e2d9c -->|calls| 4eec17e9_9a96_168a_2273_b6e64e229816 be8a0ed1_b99f_69da_ee35_10576df2e1ad["barePixels()"] be8a0ed1_b99f_69da_ee35_10576df2e1ad -->|calls| 4eec17e9_9a96_168a_2273_b6e64e229816 ad32c7cd_bbeb_adfc_3fa6_af174ce3f3ee["bareMilliseconds()"] ad32c7cd_bbeb_adfc_3fa6_af174ce3f3ee -->|calls| 4eec17e9_9a96_168a_2273_b6e64e229816 7ba0f5a4_beae_af11_c6ef_b44c76be253c["bareDegrees()"] 7ba0f5a4_beae_af11_c6ef_b44c76be253c -->|calls| 4eec17e9_9a96_168a_2273_b6e64e229816 a5c3eb39_bfdf_f90c_e8ae_71716e43fca3["bareAspectRatio()"] a5c3eb39_bfdf_f90c_e8ae_71716e43fca3 -->|calls| 4eec17e9_9a96_168a_2273_b6e64e229816 40b1ac33_d9e5_c89d_1563_4d94409ee4d5["bareRepeatValues()"] 40b1ac33_d9e5_c89d_1563_4d94409ee4d5 -->|calls| 4eec17e9_9a96_168a_2273_b6e64e229816 63b9a37b_6501_bf25_410b_7f820a1f3a11["registerLegacyUtilities()"] 63b9a37b_6501_bf25_410b_7f820a1f3a11 -->|calls| 4eec17e9_9a96_168a_2273_b6e64e229816 5af2f27c_4323_fb62_14cc_5b4f717b4d2f["createCssUtility()"] 5af2f27c_4323_fb62_14cc_5b4f717b4d2f -->|calls| 4eec17e9_9a96_168a_2273_b6e64e229816 0866206a_2fd9_ab63_77ac_471d39e47d4c["resolveValueFunction()"] 0866206a_2fd9_ab63_77ac_471d39e47d4c -->|calls| 4eec17e9_9a96_168a_2273_b6e64e229816 c067616f_e276_458d_2166_c9f10e6fcc93["createVariants()"] c067616f_e276_458d_2166_c9f10e6fcc93 -->|calls| 4eec17e9_9a96_168a_2273_b6e64e229816 style 4eec17e9_9a96_168a_2273_b6e64e229816 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/tailwindcss/src/utils/infer-data-type.ts lines 346–349
export function isPositiveInteger(value: any) {
let num = Number(value)
return Number.isInteger(num) && num >= 0 && String(num) === String(value)
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does isPositiveInteger() do?
isPositiveInteger() is a function in the tailwindcss codebase.
What calls isPositiveInteger()?
isPositiveInteger() is called by 13 function(s): bareAspectRatio, bareDegrees, bareIntegers, bareMilliseconds, barePercentages, barePixels, bareRepeatValues, createCssUtility, and 5 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free