Apply automatic changes

This commit is contained in:
itsMapleLeaf
2023-09-27 17:23:41 +00:00
committed by github-actions[bot]
parent ffe0a86a33
commit e2c3de4fae
8 changed files with 9 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
import { LooseOmit, LoosePick, typeEquals } from "./types.ts" import { type LooseOmit, type LoosePick, typeEquals } from "./types.ts"
typeEquals<LoosePick<{ a: 1; b: 2 }, "a">, { a: 1 }>(true) typeEquals<LoosePick<{ a: 1; b: 2 }, "a">, { a: 1 }>(true)
typeEquals<LooseOmit<{ a: 1; b: 2 }, "a">, { b: 2 }>(true) typeEquals<LooseOmit<{ a: 1; b: 2 }, "a">, { b: 2 }>(true)

View File

@@ -2,7 +2,7 @@ import { raise } from "./raise.ts"
export type MaybePromise<T> = T | PromiseLike<T> export type MaybePromise<T> = T | PromiseLike<T>
export type ValueOf<Type> = Type extends readonly (infer Value)[] export type ValueOf<Type> = Type extends ReadonlyArray<infer Value>
? Value ? Value
: Type[keyof Type] : Type[keyof Type]

View File

@@ -1,5 +1,5 @@
import { setTimeout } from "node:timers/promises" import { setTimeout } from "node:timers/promises"
import { MaybePromise } from "./types.ts" import type { MaybePromise } from "./types.ts"
const maxTime = 1000 const maxTime = 1000

View File

@@ -1,6 +1,6 @@
import { snakeCaseDeep } from "@reacord/helpers/convert-object-property-case" import { snakeCaseDeep } from "@reacord/helpers/convert-object-property-case"
import { omit } from "@reacord/helpers/omit" import { omit } from "@reacord/helpers/omit"
import React from "react" import type React from "react"
import { ReacordElement } from "../../internal/element.js" import { ReacordElement } from "../../internal/element.js"
import type { MessageOptions } from "../../internal/message" import type { MessageOptions } from "../../internal/message"
import { Node } from "../../internal/node.js" import { Node } from "../../internal/node.js"
@@ -17,7 +17,7 @@ export interface EmbedProps {
description?: string description?: string
url?: string url?: string
color?: number color?: number
fields?: { name: string; value: string; inline?: boolean }[] fields?: Array<{ name: string; value: string; inline?: boolean }>
author?: { name: string; url?: string; iconUrl?: string } author?: { name: string; url?: string; iconUrl?: string }
thumbnail?: { url: string } thumbnail?: { url: string }
image?: { url: string } image?: { url: string }

View File

@@ -394,7 +394,7 @@ function getDiscordMessageOptions(reacordOptions: MessageOptions) {
})), })),
} }
if (!options.content && !options.embeds?.length) { if (!options.content && !options.embeds.length) {
options.content = "_ _" options.content = "_ _"
} }

View File

@@ -26,7 +26,7 @@ export class Container<T> {
} }
findType<U extends T>( findType<U extends T>(
type: new (...args: NonNullable<unknown>[]) => U, type: new (...args: Array<NonNullable<unknown>>) => U,
): U | undefined { ): U | undefined {
for (const item of this.items) { for (const item of this.items) {
if (item instanceof type) return item if (item instanceof type) return item

View File

@@ -1,5 +1,5 @@
--- ---
import { type GetStaticPaths } from "astro" import type { GetStaticPaths } from "astro"
import { getCollection, type CollectionEntry } from "astro:content" import { getCollection, type CollectionEntry } from "astro:content"
import AppFooter from "~/components/app-footer.astro" import AppFooter from "~/components/app-footer.astro"
import Layout from "~/components/layout.astro" import Layout from "~/components/layout.astro"

View File

@@ -1,4 +1,4 @@
import { Config } from "tailwindcss" import type { Config } from "tailwindcss"
import config from "../../tailwind.config.ts" import config from "../../tailwind.config.ts"
export default { export default {