mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-03 02:05:47 +02:00
refactor(frontend): Formまわりの型強化 (#16260)
* refactor(frontend): Formまわりの型強化 * fix * avoid non-null assertion and add null check for safety * refactor * avoid non-null assertion and add null check for safety * Update clip.vue --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
This commit is contained in:
@@ -14,12 +14,13 @@ import * as os from '@/os.js';
|
||||
import { misskeyApi } from '@/utility/misskey-api.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
import { prefer } from '@/preferences.js';
|
||||
import type { FormWithDefault } from '@/utility/form.js';
|
||||
|
||||
export type Plugin = {
|
||||
installId: string;
|
||||
name: string;
|
||||
active: boolean;
|
||||
config?: Record<string, { default: any }>;
|
||||
config?: FormWithDefault;
|
||||
configData: Record<string, any>;
|
||||
src: string | null;
|
||||
version: string;
|
||||
@@ -240,7 +241,7 @@ async function launchPlugin(id: Plugin['installId']): Promise<void> {
|
||||
pluginLogs.value.set(plugin.installId, []);
|
||||
|
||||
function systemLog(message: string, isError = false): void {
|
||||
pluginLogs.value.get(plugin.installId)?.push({
|
||||
pluginLogs.value.get(plugin!.installId)?.push({
|
||||
at: Date.now(),
|
||||
isSystem: true,
|
||||
message,
|
||||
|
||||
Reference in New Issue
Block a user