Sass'sboolean type.
Custom functions should respect Sass’s notion oftruthinessby treatingfalse
andnull
as falsey and everything else as truthy.
Type Parameters
T extendsboolean =boolean
Hierarchy
- Boolean
- Defined injs-api-doc/legacy/function.d.ts:379
Index
Constructors
constructor
Properties
Static
Readonly
FALSE
Sass'sfalse
value.
- Defined injs-api-doc/legacy/function.d.ts:402
Static
Readonly
TRUE
Sass'strue
value.
- Defined injs-api-doc/legacy/function.d.ts:399
Methods
get Value
- get
Value():T Returns
true
if this is Sass'strue
value andfalse
if this isSass'sfalse
value.Example
// boolean is `true`.
boolean.getValue();// true
boolean ===sass.types.Boolean.TRUE;// true
// boolean is `false`.
boolean.getValue();// false
boolean ===sass.types.Boolean.FALSE;// trueReturnsT
- Defined injs-api-doc/legacy/function.d.ts:396