BooleanValue
Official
Value wrapping a boolean.
Import:
import { BooleanValue } from 'obsidian';Signature:
export class BooleanValue extends PrimitiveValue<boolean>Extends: PrimitiveValue<boolean>
Constructor
new BooleanValue(value: boolean)Constructor.
To get the constructor instance, use getBooleanValueConstructor from obsidian-typings/implementations.
Properties
| Property | Type | Description | |
|---|---|---|---|
| data | boolean | The wrapped primitive value. (Inherited from PrimitiveValue) | |
| type | string |
Methods
| Method | Returns | Description | |
|---|---|---|---|
| isTruthy() | boolean | Returns a boolean indicating whether this obsidian#PrimitiveValue is truthy.(Inherited from PrimitiveValue) | |
| toString() | string | Get the string representation of this obsidian#PrimitiveValue.(Inherited from PrimitiveValue) |
Links to this page: