diff --git a/packages/misskey-js/src/schemas.ts b/packages/misskey-js/src/schemas.ts index 0142e24bf..4fdabd63d 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 dd8621a34..67b1a79c8 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 e88ca61ba..522379a98 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',