diff --git a/@coven/cron/Field.ts b/@coven/cron/Field.ts index 161d22b..b9ae5a4 100644 --- a/@coven/cron/Field.ts +++ b/@coven/cron/Field.ts @@ -11,6 +11,4 @@ import type { ValueOrRangeField } from "./ValueOrRangeField.ts"; * @see {@linkcode ListField} */ export type Field = - | AllToken - | ListField - | ValueOrRangeField; + AllToken | ListField | ValueOrRangeField; diff --git a/@coven/iterables/async/initial.ts b/@coven/iterables/async/initial.ts index a4314dd..5c6f67d 100644 --- a/@coven/iterables/async/initial.ts +++ b/@coven/iterables/async/initial.ts @@ -25,7 +25,7 @@ export const initial = ( let item = await iterator.next(); // deno-lint-ignore coven/no-for - for (; !item.done; ) { + for (; !item.done;) { const value = item.value; // deno-lint-ignore no-await-in-loop diff --git a/@coven/iterables/initial.ts b/@coven/iterables/initial.ts index c52fba2..9102468 100644 --- a/@coven/iterables/initial.ts +++ b/@coven/iterables/initial.ts @@ -25,7 +25,7 @@ export const initial = >( const iterator = getIterator(iterable); // deno-lint-ignore coven/no-for - for (let item = iterator.next(); !item.done; ) { + for (let item = iterator.next(); !item.done;) { const value = item.value; item = iterator.next(); diff --git a/@coven/math/PreciseString.ts b/@coven/math/PreciseString.ts index 9bfd105..c7fc306 100644 --- a/@coven/math/PreciseString.ts +++ b/@coven/math/PreciseString.ts @@ -2,5 +2,4 @@ * Possible `string` representations of `Precise`. */ export type PreciseString = - | "NaN" - | `${"-" | ""}${`${bigint}` | `${bigint}.${bigint}`}`; + "NaN" | `${"-" | ""}${`${bigint}` | `${bigint}.${bigint}`}`; diff --git a/@coven/math/preciseRound.ts b/@coven/math/preciseRound.ts index 2ffffbd..7e4a913 100644 --- a/@coven/math/preciseRound.ts +++ b/@coven/math/preciseRound.ts @@ -32,7 +32,7 @@ export const preciseRound: Unary<[precise: Precise], Precise> = memoFunction( let coefficient = getPreciseCoefficient(value); // deno-lint-ignore coven/no-for - for (; exponent < 0n; ) { + for (; exponent < 0n;) { const rem = coefficient % 10n; coefficient /= 10n; exponent += 1n; diff --git a/@coven/math/preciseTruncate.ts b/@coven/math/preciseTruncate.ts index 3acd00f..2533a1c 100644 --- a/@coven/math/preciseTruncate.ts +++ b/@coven/math/preciseTruncate.ts @@ -32,7 +32,7 @@ export const preciseTruncate: Unary<[precise: Precise], Precise> = memoFunction( let coefficient = getPreciseCoefficient(value); // deno-lint-ignore coven/no-for - for (; exponent < 0n; ) { + for (; exponent < 0n;) { coefficient /= 10n; exponent += 1n; } diff --git a/@coven/template/TemplateHandlers.ts b/@coven/template/TemplateHandlers.ts index 7458ea2..83989b2 100644 --- a/@coven/template/TemplateHandlers.ts +++ b/@coven/template/TemplateHandlers.ts @@ -15,6 +15,5 @@ import type { Stringable, TypeOfDictionary } from "@coven/types"; */ export type TemplateHandlers = { readonly [Key in keyof TypeOfDictionary]?: - | ((expression: TypeOfDictionary[Key]) => Stringable) - | Stringable; + ((expression: TypeOfDictionary[Key]) => Stringable) | Stringable; }; diff --git a/@coven/types/EntryOf.ts b/@coven/types/EntryOf.ts index f777843..036b684 100644 --- a/@coven/types/EntryOf.ts +++ b/@coven/types/EntryOf.ts @@ -17,12 +17,14 @@ import type { ReadonlyArrayLike } from "./ReadonlyArrayLike.ts"; * @see {@linkcode ReadonlyArrayLike} * @template Object Object to get the entry from. */ -export type EntryOf = Readonly<{ - /** - * @see {@linkcode EntryOf} property that shouldn't be referenced directly - */ - [Property in keyof Object]: Entry< - NormalizeEntryKey, - Object extends ReadonlyArrayLike ? Object[number] : Object[Property] - >; -}>[keyof Object]; +export type EntryOf = Readonly< + { + /** + * @see {@linkcode EntryOf} property that shouldn't be referenced directly + */ + [Property in keyof Object]: Entry< + NormalizeEntryKey, + Object extends ReadonlyArrayLike ? Object[number] : Object[Property] + >; + } +>[keyof Object]; diff --git a/@coven/types/ISODayOfMonth.ts b/@coven/types/ISODayOfMonth.ts index 62188b7..790605d 100644 --- a/@coven/types/ISODayOfMonth.ts +++ b/@coven/types/ISODayOfMonth.ts @@ -11,6 +11,4 @@ import type { Digit } from "./Digit.ts"; * @see {@linkcode https://coven.to/mdn/Date Date} */ export type ISODayOfMonth = - | `${1 | 2}${Digit}` - | `0${Exclude}` - | `3${0 | 1}`; + `${1 | 2}${Digit}` | `0${Exclude}` | `3${0 | 1}`; diff --git a/@coven/types/NormalizeEntryKey.ts b/@coven/types/NormalizeEntryKey.ts index 2d98689..848c14f 100644 --- a/@coven/types/NormalizeEntryKey.ts +++ b/@coven/types/NormalizeEntryKey.ts @@ -10,5 +10,4 @@ * @template EntryKey `PropertyKey` to be stringified. */ export type NormalizeEntryKey = - | Exclude - | `${Extract}`; + Exclude | `${Extract}`; diff --git a/@simulcast/core/BroadcastObject.ts b/@simulcast/core/BroadcastObject.ts index 79346ad..44fbc61 100644 --- a/@simulcast/core/BroadcastObject.ts +++ b/@simulcast/core/BroadcastObject.ts @@ -36,9 +36,9 @@ export type BroadcastObject = Readonly< /** * Dynamically generated `emit`. */ - [Event in keyof Events as `emit${Capitalize}`]: EventHandler< - Events[Event] - >; + [ + Event in keyof Events as `emit${Capitalize}` + ]: EventHandler; } & { /** * Dynamically generated `on`. diff --git a/deno.json b/deno.json index 2006578..681a9c9 100644 --- a/deno.json +++ b/deno.json @@ -9,6 +9,9 @@ "noUnusedParameters": true, "strict": true }, + "coverage": { + "thresholds": { "branches": 100, "functions": 100, "lines": 100 } + }, "exclude": ["coverage"], "fmt": { "bracePosition": "sameLine",