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

Function convertBoolean

packages/@tailwindcss-cli/src/utils/args.ts:152–164  ·  view source on GitHub ↗
(value: ArgumentType)

Source from the content-addressed store, hash-verified

150}
151
152function convertBoolean(value: ArgumentType) {
153 if (value === true || value === false) {
154 return value
155 }
156
157 if (value === 'true') {
158 return true
159 }
160
161 if (value === 'false') {
162 return false
163 }
164}
165
166function convertNumber(value: ArgumentType) {
167 if (typeof value === 'number') {

Callers 1

convertFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected