This commit is contained in:
tamaina 2023-05-04 11:13:03 +00:00
parent 47e3792105
commit 0ee1dab2bc
3 changed files with 4 additions and 3 deletions

View file

@ -70,7 +70,8 @@ type Refs = typeof packedAntennaSchema | typeof packedNoteSchema; // TODO: typeo
export type References = [
typeof IdSchema,
...UnionToArray<Refs>
typeof packedAntennaSchema,
typeof packedNoteSchema,
];
export type Packed<x extends GetKeys<References, 'https://misskey-hub.net/api/schemas/'>> = GetDef<References, x, 'https://misskey-hub.net/api/schemas/'>;

View file

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

View file

@ -1,4 +1,4 @@
import { notificationTypes } from '@/types.js';
import { notificationTypes } from '../consts';
export const packedNotificationSchema = {
type: 'object',