@zoodogood/utils 0.8.2-0 → 0.8.3

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zoodogood/utils",
3
3
  "type": "module",
4
- "version": "0.8.2-0",
4
+ "version": "0.8.3",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "homepage": "https://zoodogood.github.io/utils",
@@ -9,6 +9,7 @@
9
9
  "test": "node index",
10
10
  "docs-build": "cd ./docs & retype build --output ./public"
11
11
  },
12
+ "typings": "types/index",
12
13
  "exports": {
13
14
  "./primitives": "./packages/primitives/mod.js",
14
15
  "./objectives": "./packages/objectives/mod.js",
@@ -1,4 +1,5 @@
1
1
  export * from './CustomCollector.js';
2
+ export * from './GlitchText.js';
2
3
 
3
4
  /**
4
5
  * @param {object} object
@@ -0,0 +1,30 @@
1
+ export type GlitchTextOptions = {
2
+ step?: number;
3
+ random?: boolean;
4
+ maximum?: number;
5
+ };
6
+ /**
7
+ * @typedef {Object} GlitchTextOptions
8
+ * @property {number} [step=15]
9
+ * @property {boolean} [random=false]
10
+ * @property {number} [maximum=100]
11
+ */
12
+ export class GlitchText {
13
+ /**
14
+ *
15
+ * @param {string} from
16
+ * @param {string} to
17
+ * @param {GlitchTextOptions} param2
18
+ */
19
+ constructor(from?: string, to?: string, { step, random, maximum }?: GlitchTextOptions);
20
+ from: string;
21
+ to: string;
22
+ step: number;
23
+ random: boolean;
24
+ maximum: number;
25
+ /**
26
+ * @generator
27
+ * @yields {string}
28
+ */
29
+ iteratorFunction(): {};
30
+ }
@@ -1,4 +1,5 @@
1
1
  export * from "./CustomCollector.js";
2
+ export * from "./GlitchText.js";
2
3
  export type GetRandomValueOptions = {
3
4
  min?: number;
4
5
  max: number;