?????????

This commit is contained in:
tamaina 2023-07-03 05:06:23 +00:00
parent bd9c084a3a
commit 02405287d1
7 changed files with 12 additions and 9 deletions

View File

@ -4,6 +4,7 @@
"description": "Misskey SDK for JavaScript",
"main": "./built/index.js",
"types": "./built/index.d.ts",
"type": "module",
"scripts": {
"build": "tsc",
"dev": "tsc -w",

View File

@ -2,7 +2,7 @@ import type {
Ad, Announcement, Antenna, App, AuthSession, Blocking, Channel, Clip, DateString, DetailedInstanceMetadata, DriveFile, DriveFolder, Following, FollowingFolloweePopulated, FollowingFollowerPopulated, FollowRequest, GalleryPost, Instance,
LiteInstanceMetadata,
MeDetailed,
Note, NoteFavorite, OriginType, Page, ServerInfo, Stats, User, UserDetailed, MeSignup, UserGroup, UserList, UserSorting, Notification, NoteReaction, Signin, MessagingMessage,
Note, NoteFavorite, OriginType, Page, ServerInfo, Stats, User, UserDetailed, MeSignup, UserList, UserSorting, Notification, NoteReaction, Signin,
} from './entities.js';
type TODO = Record<string, any> | null;

View File

@ -1,8 +1,8 @@
import type { JSONSchema7 } from 'schema-type';
import { IEndpointMeta } from './endpoints.types';
import { localUsernameSchema, passwordSchema } from './schemas/user';
import { IEndpointMeta } from './endpoints.types.js';
import { localUsernameSchema, passwordSchema } from './schemas/user.js';
import ms from 'ms';
import { chartSchemaToJSONSchema } from './schemas';
import { chartSchemaToJSONSchema } from './schemas.js';
import { chartsSchemas } from './schemas/charts.js';
export const endpoints = {

View File

@ -1,6 +1,6 @@
import type { JSONSchema7, SchemaType } from 'schema-type';
import type { References } from './schemas';
import type { endpoints } from './endpoints';
import type { References } from './schemas.js';
import type { endpoints } from './endpoints.js';
import type { DeepOmit } from 'ts-essentials';
export type RolePolicies = {

View File

@ -1,4 +1,4 @@
import { Packed } from "./schemas";
import { Packed } from "./schemas.js";
export type ID = Packed<'Id'>;
export type DateString = string;
@ -175,3 +175,5 @@ export type UserSorting =
| '+updatedAt'
| '-updatedAt';
export type OriginType = 'combined' | 'local' | 'remote';
export type MeSignup = TODO;

View File

@ -1,4 +1,4 @@
import { ChartSchema } from "../schemas";
import { ChartSchema } from "../schemas.js";
export const chartsSchemas = {
'activeUsers': {

View File

@ -1,5 +1,5 @@
import type { JSONSchema7Definition } from 'schema-type';
import { ACHIEVEMENT_TYPES, notificationTypes } from '../consts';
import { ACHIEVEMENT_TYPES, notificationTypes } from '../consts.js';
export const notificationTypeSchema = {
$id: 'https://misskey-hub.net/api/schemas/NotificationTypes',