nekos 1.1.4 → 1.2.0
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/aa/box.txt +1 -1
- package/aa/nyancat_x.txt +0 -1
- package/aa/sad_cat.txt +1 -1
- package/aa/surprise.txt +1 -1
- package/index.d.ts +7 -5
- package/package.json +1 -1
package/aa/box.txt
CHANGED
package/aa/nyancat_x.txt
CHANGED
package/aa/sad_cat.txt
CHANGED
package/aa/surprise.txt
CHANGED
package/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
type ColorKeyword = "RANDOM" | "RAINBOW";
|
|
2
|
+
|
|
3
|
+
type ColorValue = ColorKeyword | string;
|
|
2
4
|
|
|
3
5
|
/**
|
|
4
6
|
* An object of options for the nekos function.
|
|
@@ -10,9 +12,9 @@ interface NekosOptions {
|
|
|
10
12
|
id?: string;
|
|
11
13
|
|
|
12
14
|
/**
|
|
13
|
-
* A
|
|
15
|
+
* A 6-digit hex color code, a keyword ("RANDOM", "RAINBOW"), or an array of these values for a gradient.
|
|
14
16
|
*/
|
|
15
|
-
colors?:
|
|
17
|
+
colors?: ColorValue | ColorValue[];
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
/**
|
|
@@ -22,8 +24,8 @@ interface NekosOptions {
|
|
|
22
24
|
* @example
|
|
23
25
|
* import nekos from 'nekos';
|
|
24
26
|
*
|
|
25
|
-
* // Log a cat with
|
|
26
|
-
* nekos({
|
|
27
|
+
* // Log a cat with a specific hex color
|
|
28
|
+
* nekos({ colors: '#a4c8e1' });
|
|
27
29
|
*/
|
|
28
30
|
declare function nekos(options?: NekosOptions): void;
|
|
29
31
|
|