specify .js
This commit is contained in:
parent
ea6f9f1e7d
commit
d7fbef0a55
@ -1,4 +1,4 @@
|
|||||||
import type { Endpoints } from './api.types';
|
import type { Endpoints } from './api.types.js';
|
||||||
|
|
||||||
const MK_API_ERROR = Symbol();
|
const MK_API_ERROR = Symbol();
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ import type {
|
|||||||
LiteInstanceMetadata,
|
LiteInstanceMetadata,
|
||||||
MeDetailed,
|
MeDetailed,
|
||||||
Note, NoteFavorite, OriginType, Page, ServerInfo, Stats, User, UserDetailed, UserGroup, UserList, UserSorting, Notification, NoteReaction, Signin, MessagingMessage,
|
Note, NoteFavorite, OriginType, Page, ServerInfo, Stats, User, UserDetailed, UserGroup, UserList, UserSorting, Notification, NoteReaction, Signin, MessagingMessage,
|
||||||
} from './entities';
|
} from './entities.js';
|
||||||
|
|
||||||
type TODO = Record<string, any> | null;
|
type TODO = Record<string, any> | null;
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { Endpoints } from './api.types';
|
import { Endpoints } from './api.types.js';
|
||||||
import Stream, { Connection } from './streaming';
|
import Stream, { Connection } from './streaming.js';
|
||||||
import { Channels } from './streaming.types';
|
import { Channels } from './streaming.types.js';
|
||||||
import { Acct } from './acct';
|
import { Acct } from './acct.js';
|
||||||
import * as consts from './consts';
|
import * as consts from './consts.js';
|
||||||
|
|
||||||
export {
|
export {
|
||||||
Endpoints,
|
Endpoints,
|
||||||
@ -19,8 +19,8 @@ export const mutedNoteReasons = consts.mutedNoteReasons;
|
|||||||
export const ffVisibility = consts.ffVisibility;
|
export const ffVisibility = consts.ffVisibility;
|
||||||
|
|
||||||
// api extractor not supported yet
|
// api extractor not supported yet
|
||||||
//export * as api from './api';
|
//export * as api from './api.js';
|
||||||
//export * as entities from './entities';
|
//export * as entities from './entities.js';
|
||||||
import * as api from './api';
|
import * as api from './api.js';
|
||||||
import * as entities from './entities';
|
import * as entities from './entities.js';
|
||||||
export { api, entities };
|
export { api, entities };
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import autobind from 'autobind-decorator';
|
import autobind from 'autobind-decorator';
|
||||||
import { EventEmitter } from 'eventemitter3';
|
import { EventEmitter } from 'eventemitter3';
|
||||||
import ReconnectingWebsocket from 'reconnecting-websocket';
|
import ReconnectingWebsocket from 'reconnecting-websocket';
|
||||||
import type { BroadcastEvents, Channels } from './streaming.types';
|
import type { BroadcastEvents, Channels } from './streaming.types.js';
|
||||||
|
|
||||||
export function urlQuery(obj: Record<string, string | number | boolean | undefined>): string {
|
export function urlQuery(obj: Record<string, string | number | boolean | undefined>): string {
|
||||||
const params = Object.entries(obj)
|
const params = Object.entries(obj)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { Antenna, CustomEmoji, DriveFile, MeDetailed, MessagingMessage, Note, Notification, PageEvent, User, UserGroup } from './entities';
|
import type { Antenna, CustomEmoji, DriveFile, MeDetailed, MessagingMessage, Note, Notification, PageEvent, User, UserGroup } from './entities.js';
|
||||||
|
|
||||||
type FIXME = any;
|
type FIXME = any;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { APIClient, isAPIError } from '../src/api';
|
|
||||||
import { enableFetchMocks } from 'jest-fetch-mock';
|
import { enableFetchMocks } from 'jest-fetch-mock';
|
||||||
|
import { APIClient, isAPIError } from '../src/api';
|
||||||
|
|
||||||
enableFetchMocks();
|
enableFetchMocks();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user