Skip to content

Commit

Permalink
Fix Sass Boolean, make it a class to match spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Goodwine committed Jan 25, 2025
1 parent 2b3c83f commit 9f15a8b
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 `true` and `false` 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 9f15a8b

Please sign in to comment.