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',