lucid-extension-sdk 0.0.64 → 0.0.66
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.
package/package.json
CHANGED
|
@@ -24,6 +24,10 @@ export declare enum FieldDisplayType {
|
|
|
24
24
|
* Given a URL, display a small image cropped into a circle in the lower-left of the card.
|
|
25
25
|
*/
|
|
26
26
|
ImageBadge = "ImageBadge",
|
|
27
|
+
/**
|
|
28
|
+
* Given a URL, display a small image cropped into a square in the lower-left of the card.
|
|
29
|
+
*/
|
|
30
|
+
SquareImageBadge = "SquareImageBadge",
|
|
27
31
|
/**
|
|
28
32
|
* Given a date, display a small calendar icon alongside a very short version of the date
|
|
29
33
|
* as a string, e.g. "Sep 9"
|
|
@@ -28,6 +28,10 @@ var FieldDisplayType;
|
|
|
28
28
|
* Given a URL, display a small image cropped into a circle in the lower-left of the card.
|
|
29
29
|
*/
|
|
30
30
|
FieldDisplayType["ImageBadge"] = "ImageBadge";
|
|
31
|
+
/**
|
|
32
|
+
* Given a URL, display a small image cropped into a square in the lower-left of the card.
|
|
33
|
+
*/
|
|
34
|
+
FieldDisplayType["SquareImageBadge"] = "SquareImageBadge";
|
|
31
35
|
/**
|
|
32
36
|
* Given a date, display a small calendar icon alongside a very short version of the date
|
|
33
37
|
* as a string, e.g. "Sep 9"
|
|
@@ -8,12 +8,12 @@ import { DestructureGuardedTypeObj, GuardToType, Validator } from '../guards';
|
|
|
8
8
|
* Creates a validator which tests if the target is a string
|
|
9
9
|
* and is one of the values in the specified enum (object).
|
|
10
10
|
*/
|
|
11
|
-
export declare function stringEnumValidator<T>(enumMap: T): (x: unknown) => x is T[keyof T];
|
|
11
|
+
export declare function stringEnumValidator<T>(enumMap: T): (x: unknown) => x is {} extends T ? never : T[keyof T];
|
|
12
12
|
/**
|
|
13
13
|
* Creates a validator which tests if the target is a value in the specified enum.
|
|
14
14
|
* Note that numbers in enums are reverse-mapped by the TS transpiler, so the specified keys are also values.
|
|
15
15
|
*/
|
|
16
|
-
export declare function enumValidator<T>(enumMap: T): (x: unknown) => x is T[keyof T];
|
|
16
|
+
export declare function enumValidator<T>(enumMap: T): (x: unknown) => x is {} extends T ? never : T[keyof T];
|
|
17
17
|
/**
|
|
18
18
|
* Creates a validator which tests if the target is a number
|
|
19
19
|
* and is equal to or between the min and max values.
|