?????????
This commit is contained in:
parent
bd9c084a3a
commit
02405287d1
|
@ -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",
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { ChartSchema } from "../schemas";
|
||||
import { ChartSchema } from "../schemas.js";
|
||||
|
||||
export const chartsSchemas = {
|
||||
'activeUsers': {
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue