lucid-extension-sdk 0.0.249 → 0.0.251
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -186,6 +186,7 @@ export declare const isRestrictions: (subject: unknown) => subject is Destructur
|
|
|
186
186
|
*/
|
|
187
187
|
export declare function isFlag(x: unknown): x is 0 | 1 | boolean;
|
|
188
188
|
export declare function isTrue(x: unknown): x is true;
|
|
189
|
+
export declare function isFalse(x: unknown): x is false;
|
|
189
190
|
/**
|
|
190
191
|
* Returns if an object is a number between 0 and 100.
|
|
191
192
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.asAssertion = exports.validatorWithMessage = exports.minLengthValidator = exports.maxLengthValidator = exports.isDate = exports.isPositiveNumber = exports.isSize = exports.isPanelSize = exports.isBoundingBox = exports.isPointLike = exports.isOpacity = exports.isTrue = exports.isFlag = exports.isRestrictions = exports.isStringOrNegativeOne = exports.isBooleanOrEmptyString = exports.isNumberOrEmptyString = exports.isSet = exports.propertyValidator = exports.exclude = exports.both = exports.either = exports.isNullOption = exports.nullableOption = exports.option = exports.nullable = exports.objectOfValidator = exports.typedRecordValidator = exports.recordValidator = exports.strictObjectValidator = exports.partialObjectValidator = exports.objectValidator = exports.mapValidator = exports.someValidator = exports.someValue = exports.tupleValidator = exports.arrayValidator = exports.rangeValidator = exports.enumValidator = exports.stringEnumValidator = void 0;
|
|
3
|
+
exports.asAssertion = exports.validatorWithMessage = exports.minLengthValidator = exports.maxLengthValidator = exports.isDate = exports.isPositiveNumber = exports.isSize = exports.isPanelSize = exports.isBoundingBox = exports.isPointLike = exports.isOpacity = exports.isFalse = exports.isTrue = exports.isFlag = exports.isRestrictions = exports.isStringOrNegativeOne = exports.isBooleanOrEmptyString = exports.isNumberOrEmptyString = exports.isSet = exports.propertyValidator = exports.exclude = exports.both = exports.either = exports.isNullOption = exports.nullableOption = exports.option = exports.nullable = exports.objectOfValidator = exports.typedRecordValidator = exports.recordValidator = exports.strictObjectValidator = exports.partialObjectValidator = exports.objectValidator = exports.mapValidator = exports.someValidator = exports.someValue = exports.tupleValidator = exports.arrayValidator = exports.rangeValidator = exports.enumValidator = exports.stringEnumValidator = void 0;
|
|
4
4
|
const checks_1 = require("../checks");
|
|
5
5
|
const object_1 = require("../object");
|
|
6
6
|
/*********************************************************************************
|
|
@@ -346,6 +346,10 @@ function isTrue(x) {
|
|
|
346
346
|
return x === true;
|
|
347
347
|
}
|
|
348
348
|
exports.isTrue = isTrue;
|
|
349
|
+
function isFalse(x) {
|
|
350
|
+
return x === false;
|
|
351
|
+
}
|
|
352
|
+
exports.isFalse = isFalse;
|
|
349
353
|
/**
|
|
350
354
|
* Returns if an object is a number between 0 and 100.
|
|
351
355
|
*
|
|
@@ -18,7 +18,7 @@ export interface TextStyle {
|
|
|
18
18
|
[TextMarkupNames.Underline]: boolean;
|
|
19
19
|
[TextMarkupNames.Size]: number;
|
|
20
20
|
[TextMarkupNames.Color]: string;
|
|
21
|
-
[TextMarkupNames.HAlign]:
|
|
21
|
+
[TextMarkupNames.HAlign]: string;
|
|
22
22
|
}
|
|
23
23
|
export declare const isPartialTextStyle: (subject: unknown) => subject is Partial<import("../..").DestructureGuardedTypeObj<{
|
|
24
24
|
font: typeof isString;
|
|
@@ -27,5 +27,5 @@ export declare const isPartialTextStyle: (subject: unknown) => subject is Partia
|
|
|
27
27
|
underline: typeof isBoolean;
|
|
28
28
|
size: typeof isNumber;
|
|
29
29
|
color: typeof isString;
|
|
30
|
-
align:
|
|
30
|
+
align: typeof isString;
|
|
31
31
|
}>>;
|
|
@@ -23,5 +23,5 @@ exports.isPartialTextStyle = (0, validators_1.partialObjectValidator)({
|
|
|
23
23
|
[TextMarkupNames.Underline]: checks_1.isBoolean,
|
|
24
24
|
[TextMarkupNames.Size]: checks_1.isNumber,
|
|
25
25
|
[TextMarkupNames.Color]: checks_1.isString,
|
|
26
|
-
[TextMarkupNames.HAlign]:
|
|
26
|
+
[TextMarkupNames.HAlign]: checks_1.isString,
|
|
27
27
|
});
|