fix
This commit is contained in:
parent
47e3792105
commit
0ee1dab2bc
3 changed files with 4 additions and 3 deletions
|
@ -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/'>;
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { notificationTypes } from '@/types.js';
|
||||
import { notificationTypes } from '../consts';
|
||||
|
||||
export const packedNotificationSchema = {
|
||||
type: 'object',
|
||||
|
|
Loading…
Reference in a new issue