From 0ee1dab2bca1ffb82f540bfc3a28b98437bd6cc2 Mon Sep 17 00:00:00 2001 From: tamaina Date: Thu, 4 May 2023 11:13:03 +0000 Subject: [PATCH] fix --- packages/misskey-js/src/schemas.ts | 3 ++- packages/misskey-js/src/schemas/note.ts | 2 +- packages/misskey-js/src/schemas/notification.ts | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/misskey-js/src/schemas.ts b/packages/misskey-js/src/schemas.ts index 0142e24bf6..4fdabd63de 100644 --- a/packages/misskey-js/src/schemas.ts +++ b/packages/misskey-js/src/schemas.ts @@ -70,7 +70,8 @@ type Refs = typeof packedAntennaSchema | typeof packedNoteSchema; // TODO: typeo export type References = [ typeof IdSchema, - ...UnionToArray + typeof packedAntennaSchema, + typeof packedNoteSchema, ]; export type Packed> = GetDef; diff --git a/packages/misskey-js/src/schemas/note.ts b/packages/misskey-js/src/schemas/note.ts index dd8621a345..67b1a79c83 100644 --- a/packages/misskey-js/src/schemas/note.ts +++ b/packages/misskey-js/src/schemas/note.ts @@ -1,4 +1,4 @@ -import type { JSONSchema7 } from 'schema-type'; +import type { JSONSchema7Definition } from 'schema-type'; export const packedNoteSchema = { $id: 'https://misskey-hub.net/api/schemas/Note', diff --git a/packages/misskey-js/src/schemas/notification.ts b/packages/misskey-js/src/schemas/notification.ts index e88ca61ba0..522379a986 100644 --- a/packages/misskey-js/src/schemas/notification.ts +++ b/packages/misskey-js/src/schemas/notification.ts @@ -1,4 +1,4 @@ -import { notificationTypes } from '@/types.js'; +import { notificationTypes } from '../consts'; export const packedNotificationSchema = { type: 'object',