Skip to content

Commit 739b3f6

Browse files
authored
Fix Sass Boolean, make it a class to match spec (#359)
* Fix Sass Boolean, make it a class to match spec
1 parent 2b3c83f commit 739b3f6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: lib/src/value/boolean.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ import {Value} from './index';
99
/**
1010
* Sass boolean.
1111
*
12-
* Cannot be constructed; exists only as an interface and the exported
13-
* singletons.
12+
* This is an abstract class that cannot be directly instantiated. Instead,
13+
* use the provided {@link sassTrue} and {@link sassFalse} singleton instances.
1414
*/
15-
export interface SassBoolean extends Value {
16-
readonly value: boolean;
15+
export abstract class SassBoolean extends Value {
16+
abstract readonly value: boolean;
1717
}
1818

1919
const trueHash = hash(true);
2020
const falseHash = hash(false);
2121

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

0 commit comments

Comments
 (0)