Skip to content

Commit

Permalink
Fix Sass Boolean, make it a class to match spec (#359)
Browse files Browse the repository at this point in the history
* Fix Sass Boolean, make it a class to match spec
  • Loading branch information
Goodwine authored Jan 30, 2025
1 parent 2b3c83f commit 739b3f6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/src/value/boolean.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ import {Value} from './index';
/**
* Sass boolean.
*
* Cannot be constructed; exists only as an interface and the exported
* singletons.
* This is an abstract class that cannot be directly instantiated. Instead,
* use the provided {@link sassTrue} and {@link sassFalse} singleton instances.
*/
export interface SassBoolean extends Value {
readonly value: boolean;
export abstract class SassBoolean extends Value {
abstract readonly value: boolean;
}

const trueHash = hash(true);
const falseHash = hash(false);

export class SassBooleanInternal extends Value implements SassBoolean {
export class SassBooleanInternal extends SassBoolean {
// Whether callers are allowed to construct this class. This is set to
// `false` once the two constants are constructed so that the constructor
// throws an error for future calls, in accordance with the legacy API.
Expand Down

0 comments on commit 739b3f6

Please sign in to comment.