summaryrefslogtreecommitdiff
path: root/includes/external/addressbook/node_modules/nth-check/lib/esm/index.d.ts
diff options
context:
space:
mode:
authorRaindropsSys <raindrops@equestria.dev>2023-11-17 23:25:29 +0100
committerRaindropsSys <raindrops@equestria.dev>2023-11-17 23:25:29 +0100
commit953ddd82e48dd206cef5ac94456549aed13b3ad5 (patch)
tree8f003106ee2e7f422e5a22d2ee04d0db302e66c0 /includes/external/addressbook/node_modules/nth-check/lib/esm/index.d.ts
parent62a9199846b0c07c03218703b33e8385764f42d9 (diff)
downloadpluralconnect-953ddd82e48dd206cef5ac94456549aed13b3ad5.tar.gz
pluralconnect-953ddd82e48dd206cef5ac94456549aed13b3ad5.tar.bz2
pluralconnect-953ddd82e48dd206cef5ac94456549aed13b3ad5.zip
Updated 30 files and deleted 2976 files (automated)
Diffstat (limited to 'includes/external/addressbook/node_modules/nth-check/lib/esm/index.d.ts')
-rw-r--r--includes/external/addressbook/node_modules/nth-check/lib/esm/index.d.ts59
1 files changed, 0 insertions, 59 deletions
diff --git a/includes/external/addressbook/node_modules/nth-check/lib/esm/index.d.ts b/includes/external/addressbook/node_modules/nth-check/lib/esm/index.d.ts
deleted file mode 100644
index 2cddd39..0000000
--- a/includes/external/addressbook/node_modules/nth-check/lib/esm/index.d.ts
+++ /dev/null
@@ -1,59 +0,0 @@
-import { parse } from "./parse.js";
-import { compile, generate } from "./compile.js";
-export { parse, compile, generate };
-/**
- * Parses and compiles a formula to a highly optimized function.
- * Combination of {@link parse} and {@link compile}.
- *
- * If the formula doesn't match any elements,
- * it returns [`boolbase`](https://github.com/fb55/boolbase)'s `falseFunc`.
- * Otherwise, a function accepting an _index_ is returned, which returns
- * whether or not the passed _index_ matches the formula.
- *
- * Note: The nth-rule starts counting at `1`, the returned function at `0`.
- *
- * @param formula The formula to compile.
- * @example
- * const check = nthCheck("2n+3");
- *
- * check(0); // `false`
- * check(1); // `false`
- * check(2); // `true`
- * check(3); // `false`
- * check(4); // `true`
- * check(5); // `false`
- * check(6); // `true`
- */
-export default function nthCheck(formula: string): (index: number) => boolean;
-/**
- * Parses and compiles a formula to a generator that produces a sequence of indices.
- * Combination of {@link parse} and {@link generate}.
- *
- * @param formula The formula to compile.
- * @returns A function that produces a sequence of indices.
- * @example <caption>Always increasing</caption>
- *
- * ```js
- * const gen = nthCheck.sequence('2n+3')
- *
- * gen() // `1`
- * gen() // `3`
- * gen() // `5`
- * gen() // `8`
- * gen() // `11`
- * ```
- *
- * @example <caption>With end value</caption>
- *
- * ```js
- *
- * const gen = nthCheck.sequence('-2n+5');
- *
- * gen() // 0
- * gen() // 2
- * gen() // 4
- * gen() // null
- * ```
- */
-export declare function sequence(formula: string): () => number | null;
-//# sourceMappingURL=index.d.ts.map \ No newline at end of file