Apply automatic changes
This commit is contained in:
committed by
github-actions[bot]
parent
ffe0a86a33
commit
e2c3de4fae
@@ -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<LooseOmit<{ a: 1; b: 2 }, "a">, { b: 2 }>(true)
|
||||
|
||||
@@ -2,7 +2,7 @@ import { raise } from "./raise.ts"
|
||||
|
||||
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
|
||||
: Type[keyof Type]
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { setTimeout } from "node:timers/promises"
|
||||
import { MaybePromise } from "./types.ts"
|
||||
import type { MaybePromise } from "./types.ts"
|
||||
|
||||
const maxTime = 1000
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { snakeCaseDeep } from "@reacord/helpers/convert-object-property-case"
|
||||
import { omit } from "@reacord/helpers/omit"
|
||||
import React from "react"
|
||||
import type React from "react"
|
||||
import { ReacordElement } from "../../internal/element.js"
|
||||
import type { MessageOptions } from "../../internal/message"
|
||||
import { Node } from "../../internal/node.js"
|
||||
@@ -17,7 +17,7 @@ export interface EmbedProps {
|
||||
description?: string
|
||||
url?: string
|
||||
color?: number
|
||||
fields?: { name: string; value: string; inline?: boolean }[]
|
||||
fields?: Array<{ name: string; value: string; inline?: boolean }>
|
||||
author?: { name: string; url?: string; iconUrl?: string }
|
||||
thumbnail?: { url: string }
|
||||
image?: { url: string }
|
||||
|
||||
@@ -394,7 +394,7 @@ function getDiscordMessageOptions(reacordOptions: MessageOptions) {
|
||||
})),
|
||||
}
|
||||
|
||||
if (!options.content && !options.embeds?.length) {
|
||||
if (!options.content && !options.embeds.length) {
|
||||
options.content = "_ _"
|
||||
}
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ export class Container<T> {
|
||||
}
|
||||
|
||||
findType<U extends T>(
|
||||
type: new (...args: NonNullable<unknown>[]) => U,
|
||||
type: new (...args: Array<NonNullable<unknown>>) => U,
|
||||
): U | undefined {
|
||||
for (const item of this.items) {
|
||||
if (item instanceof type) return item
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
import { type GetStaticPaths } from "astro"
|
||||
import type { GetStaticPaths } from "astro"
|
||||
import { getCollection, type CollectionEntry } from "astro:content"
|
||||
import AppFooter from "~/components/app-footer.astro"
|
||||
import Layout from "~/components/layout.astro"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Config } from "tailwindcss"
|
||||
import type { Config } from "tailwindcss"
|
||||
import config from "../../tailwind.config.ts"
|
||||
|
||||
export default {
|
||||
|
||||
Reference in New Issue
Block a user