cobalt

Results 138 comments of cobalt
trafficstars

> Wouldn't it be fine if users just do Yes, but why does [Embed have a length property](https://github.com/discordjs/discord.js/blob/9d8179c6a78e1c7f9976f852804055964d5385d4/packages/discord.js/src/structures/Embed.js#L183) then?

Hey, is there any way to get this merged soon?

is there a status on this?

Bumping this issue. I would really appreciate an option to only prefer ternaries in assignments and `return` statements. If this is accepted, I'm willing to try adding this. *Sidenote: I...

@fregante @sindresorhus apologies for ping, is there a way to get an answer on this issue? is making a PR the best way?

literally everything on scratch is licensed under cc-by-sa 3.0 tf you mean

Looks like using a generic fixes this error: ```ts filter unknown>( predicate: P, thisArg?: unknown, ): P extends BooleanConstructor ? NonFalsy[] : T[]; ``` ![image](https://github.com/total-typescript/ts-reset/assets/61329810/8b6c82f4-4ab9-48d7-b064-0151892101c1) ![image](https://github.com/total-typescript/ts-reset/assets/61329810/e7209300-7d61-404b-8e5a-7951636c7bc4)

```ts interface Array { filter( predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: unknown, ): S[]; // duplicated from DOM types filter unknown>( predicate: P,...

Apologies for the delay @JelleZijlstra, I've had other priorities recently. The main issue was `hug_parens_with_braces_and_square_brackets` was required for the parens to be removed around multi-line expressions. I tried to identify...