mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-04 16:35:56 +02:00
refactor(frontend): フロントエンドの型エラー解消(途中まで) (#16539)
* fix(frontend): FormLinkをボタンとして使用した際にエラーが出る問題を修正 * refactor(frontend): フロントエンドの型エラー解消 * remove unused ts-expect-error * migrate * remove unrelated changes * fix lint * more type fixes
This commit is contained in:
@@ -35,9 +35,9 @@ import { focusParent } from '@/utility/focus.js';
|
||||
export const openingWindowsCount = ref(0);
|
||||
|
||||
export type ApiWithDialogCustomErrors = Record<string, { title?: string; text: string; }>;
|
||||
export const apiWithDialog = (<E extends keyof Misskey.Endpoints, P extends Misskey.Endpoints[E]['req'] = Misskey.Endpoints[E]['req']>(
|
||||
export const apiWithDialog = (<E extends keyof Misskey.Endpoints>(
|
||||
endpoint: E,
|
||||
data: P,
|
||||
data: Misskey.Endpoints[E]['req'],
|
||||
token?: string | null | undefined,
|
||||
customErrors?: ApiWithDialogCustomErrors,
|
||||
) => {
|
||||
|
||||
Reference in New Issue
Block a user