MCPcopy
hub / github.com/tailwindlabs/tailwindcss / convertBoolean

Function convertBoolean

packages/@tailwindcss-upgrade/src/utils/args.ts:131–143  ·  view source on GitHub ↗
(value: ArgumentType)

Source from the content-addressed store, hash-verified

129}
130
131function convertBoolean(value: ArgumentType) {
132 if (value === true || value === false) {
133 return value
134 }
135
136 if (value === 'true') {
137 return true
138 }
139
140 if (value === 'false') {
141 return false
142 }
143}
144
145function convertNumber(value: ArgumentType) {
146 if (typeof value === 'number') {

Callers 1

convertFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected