chore: lint
This commit is contained in:
parent
1d0223e653
commit
5e179b7721
56 changed files with 69 additions and 71 deletions
|
@ -6,7 +6,7 @@ import { EventEmitter } from "node:events";
|
|||
import { inspect } from "node:util";
|
||||
import boot from "./boot/index.js";
|
||||
|
||||
Error.stackTraceLimit = Infinity;
|
||||
Error.stackTraceLimit = Number.POSITIVE_INFINITY;
|
||||
EventEmitter.defaultMaxListeners = 128;
|
||||
|
||||
boot().catch((err) => {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
process.env.NODE_ENV = "test";
|
||||
|
||||
import * as assert from "assert";
|
||||
import * as assert from "node:assert";
|
||||
import rndstr from "rndstr";
|
||||
import { initDb } from "../src/db/postgre.js";
|
||||
import { initTestDb } from "./utils.js";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as assert from "assert";
|
||||
import * as assert from "node:assert";
|
||||
import httpSignature from "@peertube/http-signature";
|
||||
import { genRsaKeyPair } from "../src/misc/gen-key-pair.js";
|
||||
import {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
process.env.NODE_ENV = "test";
|
||||
|
||||
import * as assert from "assert";
|
||||
import * as childProcess from "child_process";
|
||||
import * as assert from "node:assert";
|
||||
import type * as childProcess from "node:child_process";
|
||||
import {
|
||||
async,
|
||||
post,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
process.env.NODE_ENV = "test";
|
||||
|
||||
import * as assert from "assert";
|
||||
import * as childProcess from "child_process";
|
||||
import * as assert from "node:assert";
|
||||
import type * as childProcess from "node:child_process";
|
||||
import {
|
||||
async,
|
||||
post,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
process.env.NODE_ENV = "test";
|
||||
|
||||
import * as assert from "assert";
|
||||
import * as childProcess from "child_process";
|
||||
import * as assert from "node:assert";
|
||||
import type * as childProcess from "node:child_process";
|
||||
import {
|
||||
async,
|
||||
post,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
process.env.NODE_ENV = "test";
|
||||
|
||||
import * as assert from "assert";
|
||||
import * as assert from "node:assert";
|
||||
import { inspect } from "node:util";
|
||||
import {
|
||||
signup,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as assert from "assert";
|
||||
import * as assert from "node:assert";
|
||||
|
||||
import { parse } from "mfm-js";
|
||||
import { extractMentions } from "../src/misc/extract-mentions.js";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
process.env.NODE_ENV = "test";
|
||||
|
||||
import * as assert from "assert";
|
||||
import * as childProcess from "child_process";
|
||||
import * as assert from "node:assert";
|
||||
import type * as childProcess from "node:child_process";
|
||||
import * as openapi from "@redocly/openapi-core";
|
||||
import {
|
||||
async,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
process.env.NODE_ENV = "test";
|
||||
|
||||
import * as assert from "assert";
|
||||
import * as childProcess from "child_process";
|
||||
import * as assert from "node:assert";
|
||||
import type * as childProcess from "node:child_process";
|
||||
import {
|
||||
async,
|
||||
connectStream,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as assert from "assert";
|
||||
import * as assert from "node:assert";
|
||||
import { dirname } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { getFileInfo } from "../src/misc/get-file-info.js";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as assert from "assert";
|
||||
import * as assert from "node:assert";
|
||||
import * as mfm from "mfm-js";
|
||||
|
||||
import { fromHtml } from "../src/mfm/from-html.js";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
process.env.NODE_ENV = "test";
|
||||
|
||||
import * as assert from "assert";
|
||||
import * as childProcess from "child_process";
|
||||
import * as assert from "node:assert";
|
||||
import type * as childProcess from "node:child_process";
|
||||
import {
|
||||
async,
|
||||
post,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
process.env.NODE_ENV = "test";
|
||||
|
||||
import * as assert from "assert";
|
||||
import * as childProcess from "child_process";
|
||||
import * as assert from "node:assert";
|
||||
import type * as childProcess from "node:child_process";
|
||||
import { Note } from "../src/models/entities/note.js";
|
||||
import {
|
||||
api,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as assert from "assert";
|
||||
import * as assert from "node:assert";
|
||||
import { just, nothing } from "../../src/prelude/maybe.js";
|
||||
|
||||
describe("just", () => {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as assert from "assert";
|
||||
import * as assert from "node:assert";
|
||||
import { query } from "../../src/prelude/url.js";
|
||||
|
||||
describe("url", () => {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
process.env.NODE_ENV = "test";
|
||||
|
||||
import * as assert from "assert";
|
||||
import * as childProcess from "child_process";
|
||||
import * as assert from "node:assert";
|
||||
import type * as childProcess from "node:child_process";
|
||||
import { Following } from "../src/models/entities/following.js";
|
||||
import {
|
||||
api,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
process.env.NODE_ENV = "test";
|
||||
|
||||
import * as assert from "assert";
|
||||
import * as childProcess from "child_process";
|
||||
import * as assert from "node:assert";
|
||||
import type * as childProcess from "node:child_process";
|
||||
import {
|
||||
async,
|
||||
connectStream,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
process.env.NODE_ENV = "test";
|
||||
|
||||
import * as assert from "assert";
|
||||
import * as childProcess from "child_process";
|
||||
import * as assert from "node:assert";
|
||||
import type * as childProcess from "node:child_process";
|
||||
import {
|
||||
async,
|
||||
post,
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import * as childProcess from "child_process";
|
||||
import { SIGKILL } from "constants";
|
||||
import * as childProcess from "node:child_process";
|
||||
import * as fs from "node:fs";
|
||||
import * as http from "node:http";
|
||||
import * as path from "node:path";
|
||||
import { dirname } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import type { endpoints, Entities } from "firefish-js";
|
||||
import type { Entities, endpoints } from "firefish-js";
|
||||
import FormData from "form-data";
|
||||
import got from "got";
|
||||
import fetch from "node-fetch";
|
||||
|
|
2
packages/client/@types/theme.d.ts
vendored
2
packages/client/@types/theme.d.ts
vendored
|
@ -1,5 +1,5 @@
|
|||
declare module "@/themes/*.json5" {
|
||||
import { Theme } from "@/scripts/theme";
|
||||
import type { Theme } from "@/scripts/theme";
|
||||
|
||||
const theme: Theme;
|
||||
|
||||
|
|
|
@ -2,8 +2,8 @@ import type { entities } from "firefish-js";
|
|||
import { defineAsyncComponent } from "vue";
|
||||
import { i18n } from "./i18n";
|
||||
import { apiUrl } from "@/config";
|
||||
import { alert, api, popup, popupMenu, waiting } from "@/os";
|
||||
import { me } from "@/me";
|
||||
import { alert, api, popup, popupMenu, waiting } from "@/os";
|
||||
import { del, get, set } from "@/scripts/idb-proxy";
|
||||
import { reloadChannel, unisonReload } from "@/scripts/unison-reload";
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ import type { entities } from "firefish-js";
|
|||
import * as os from "@/os";
|
||||
import { useStream } from "@/stream";
|
||||
import { i18n } from "@/i18n";
|
||||
import { me, isSignedIn } from "@/me";
|
||||
import { isSignedIn, me } from "@/me";
|
||||
import { getUserMenu } from "@/scripts/get-user-menu";
|
||||
import { useRouter } from "@/router";
|
||||
import { vibrate } from "@/scripts/vibrate";
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
<script lang="ts" setup>
|
||||
import { toUnicode } from "punycode";
|
||||
import { host as localHost } from "@/config";
|
||||
import { me, isSignedIn } from "@/me";
|
||||
import { isSignedIn, me } from "@/me";
|
||||
import { defaultStore } from "@/store";
|
||||
|
||||
const props = defineProps<{
|
||||
|
|
|
@ -296,7 +296,7 @@ import { userPage } from "@/filters/user";
|
|||
import * as os from "@/os";
|
||||
import { defaultStore, noteViewInterruptors } from "@/store";
|
||||
import { reactionPicker } from "@/scripts/reaction-picker";
|
||||
import { me, isSignedIn } from "@/me";
|
||||
import { isSignedIn, me } from "@/me";
|
||||
import { i18n } from "@/i18n";
|
||||
import { getNoteMenu } from "@/scripts/get-note-menu";
|
||||
import { useNoteCapture } from "@/scripts/use-note-capture";
|
||||
|
|
|
@ -211,7 +211,7 @@ import { useRouter } from "@/router";
|
|||
import { userPage } from "@/filters/user";
|
||||
import * as os from "@/os";
|
||||
import { reactionPicker } from "@/scripts/reaction-picker";
|
||||
import { me, isSignedIn } from "@/me";
|
||||
import { isSignedIn, me } from "@/me";
|
||||
import { i18n } from "@/i18n";
|
||||
import { useNoteCapture } from "@/scripts/use-note-capture";
|
||||
import { defaultStore } from "@/store";
|
||||
|
|
|
@ -45,7 +45,6 @@ const isRefreshing = ref(false);
|
|||
const pullDistance = ref(0);
|
||||
|
||||
let disabled = false;
|
||||
|
||||
let supportPointerDesktop = false;
|
||||
let startScreenY: number | null = null;
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
import { ref } from "vue";
|
||||
|
||||
import { getAccounts } from "@/account";
|
||||
import { me, isSignedIn } from "@/me";
|
||||
import { isSignedIn, me } from "@/me";
|
||||
import MkButton from "@/components/MkButton.vue";
|
||||
import { instance } from "@/instance";
|
||||
import { api, apiWithDialog, promiseDialog } from "@/os";
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
<script lang="ts" setup>
|
||||
import { computed, ref } from "vue";
|
||||
import type { entities } from "firefish-js";
|
||||
import { me, isSignedIn } from "@/me";
|
||||
import { isSignedIn, me } from "@/me";
|
||||
import XReaction from "@/components/MkReactionsViewer.reaction.vue";
|
||||
|
||||
const props = defineProps<{
|
||||
|
|
|
@ -27,7 +27,7 @@ import Ripple from "@/components/MkRipple.vue";
|
|||
import XDetails from "@/components/MkUsersTooltip.vue";
|
||||
import { pleaseLogin } from "@/scripts/please-login";
|
||||
import * as os from "@/os";
|
||||
import { me, isSignedIn } from "@/me";
|
||||
import { isSignedIn, me } from "@/me";
|
||||
import { useTooltip } from "@/scripts/use-tooltip";
|
||||
import { i18n } from "@/i18n";
|
||||
import { defaultStore } from "@/store";
|
||||
|
|
|
@ -50,7 +50,7 @@ import XNotes from "@/components/MkNotes.vue";
|
|||
import MkInfo from "@/components/MkInfo.vue";
|
||||
import { useStream } from "@/stream";
|
||||
import * as sound from "@/scripts/sound";
|
||||
import { me, isSignedIn } from "@/me";
|
||||
import { isSignedIn, me } from "@/me";
|
||||
import { i18n } from "@/i18n";
|
||||
import { defaultStore } from "@/store";
|
||||
import icon from "@/scripts/icon";
|
||||
|
|
|
@ -97,7 +97,7 @@ import XShowMoreButton from "@/components/MkShowMoreButton.vue";
|
|||
import MkNumber from "@/components/MkNumber.vue";
|
||||
import { userPage } from "@/filters/user";
|
||||
import { i18n } from "@/i18n";
|
||||
import { me, isSignedIn } from "@/me";
|
||||
import { isSignedIn, me } from "@/me";
|
||||
|
||||
const props = defineProps<{
|
||||
user: entities.UserDetailed;
|
||||
|
|
|
@ -32,14 +32,14 @@ import {
|
|||
} from "vue";
|
||||
import { set } from "@/scripts/idb-proxy";
|
||||
|
||||
import { signIn, refreshAccount, signOut, updateAccount } from "@/account";
|
||||
import { refreshAccount, signIn, signOut, updateAccount } from "@/account";
|
||||
import components from "@/components";
|
||||
import { lang, ui, version } from "@/config";
|
||||
import directives from "@/directives";
|
||||
import { i18n } from "@/i18n";
|
||||
import { fetchInstance, instance } from "@/instance";
|
||||
import { isSignedIn, me } from "@/me";
|
||||
import { alert, api, confirm, popup, post, toast } from "@/os";
|
||||
import { me, isSignedIn } from "@/me";
|
||||
import { compareFirefishVersions } from "@/scripts/compare-versions";
|
||||
import { deviceKind } from "@/scripts/device-kind";
|
||||
import { getAccountFromId } from "@/scripts/get-account-from-id";
|
||||
|
@ -435,7 +435,7 @@ function checkForSplash() {
|
|||
|
||||
const lastUsed = localStorage.getItem("lastUsed");
|
||||
if (lastUsed) {
|
||||
const lastUsedDate = parseInt(lastUsed, 10);
|
||||
const lastUsedDate = Number.parseInt(lastUsed, 10);
|
||||
// 二時間以上前なら
|
||||
if (Date.now() - lastUsedDate > 1000 * 60 * 60 * 2) {
|
||||
toast(
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { computed, reactive } from "vue";
|
||||
import { ui } from "@/config";
|
||||
import { i18n } from "@/i18n";
|
||||
import { isSignedIn, me } from "@/me";
|
||||
import * as os from "@/os";
|
||||
import { me, isSignedIn } from "@/me";
|
||||
import icon from "@/scripts/icon";
|
||||
import { search } from "@/scripts/search";
|
||||
import { unisonReload } from "@/scripts/unison-reload";
|
||||
|
|
|
@ -54,10 +54,9 @@ import MkInput from "@/components/form/input.vue";
|
|||
import MkSelect from "@/components/form/select.vue";
|
||||
import MkFolder from "@/components/MkFolder.vue";
|
||||
import MkTab from "@/components/MkTab.vue";
|
||||
import { emojiCategories, emojiTags } from "@/instance";
|
||||
import { emojiCategories, emojiTags, instance } from "@/instance";
|
||||
import { i18n } from "@/i18n";
|
||||
import iconify from "@/scripts/icon";
|
||||
import { instance } from "@/instance";
|
||||
|
||||
export default defineComponent({
|
||||
components: {
|
||||
|
|
|
@ -73,7 +73,7 @@ import MkSuperMenu from "@/components/MkSuperMenu.vue";
|
|||
import MkInfo from "@/components/MkInfo.vue";
|
||||
import { instance } from "@/instance";
|
||||
import { version } from "@/config";
|
||||
import { me, isAdmin } from "@/me";
|
||||
import { isAdmin, me } from "@/me";
|
||||
import * as os from "@/os";
|
||||
import { lookupUser } from "@/scripts/lookup-user";
|
||||
import { lookupFile } from "@/scripts/lookup-file";
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
import { computed, provide, ref, watch } from "vue";
|
||||
import type { entities } from "firefish-js";
|
||||
import XNotes from "@/components/MkNotes.vue";
|
||||
import { me, isSignedIn } from "@/me";
|
||||
import { isSignedIn, me } from "@/me";
|
||||
import { i18n } from "@/i18n";
|
||||
import * as os from "@/os";
|
||||
import { definePageMetadata } from "@/scripts/page-metadata";
|
||||
|
|
|
@ -179,7 +179,7 @@ import MkKeyValue from "@/components/MkKeyValue.vue";
|
|||
import * as os from "@/os";
|
||||
import number from "@/filters/number";
|
||||
import bytes from "@/filters/bytes";
|
||||
import { me, isAdmin, isModerator } from "@/me";
|
||||
import { isAdmin, isModerator, me } from "@/me";
|
||||
import { i18n } from "@/i18n";
|
||||
import { definePageMetadata } from "@/scripts/page-metadata";
|
||||
import icon from "@/scripts/icon";
|
||||
|
|
|
@ -57,7 +57,7 @@ import bytes from "@/filters/bytes";
|
|||
import { defaultStore } from "@/store";
|
||||
import { i18n } from "@/i18n";
|
||||
import { definePageMetadata } from "@/scripts/page-metadata";
|
||||
import { me, isSignedIn } from "@/me";
|
||||
import { isSignedIn, me } from "@/me";
|
||||
import icon from "@/scripts/icon";
|
||||
|
||||
const fetching = ref(true);
|
||||
|
|
|
@ -384,7 +384,7 @@ import { userPage } from "@/filters/user";
|
|||
import { defaultStore } from "@/store";
|
||||
import * as os from "@/os";
|
||||
import { i18n } from "@/i18n";
|
||||
import { me, isModerator, isSignedIn } from "@/me";
|
||||
import { isModerator, isSignedIn, me } from "@/me";
|
||||
import { host } from "@/config";
|
||||
import icon from "@/scripts/icon";
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ import * as os from "@/os";
|
|||
import { useRouter } from "@/router";
|
||||
import { definePageMetadata } from "@/scripts/page-metadata";
|
||||
import { i18n } from "@/i18n";
|
||||
import { me, isSignedIn } from "@/me";
|
||||
import { isSignedIn, me } from "@/me";
|
||||
import icon from "@/scripts/icon";
|
||||
|
||||
const XHome = defineAsyncComponent(() => import("./home.vue"));
|
||||
|
|
|
@ -4,7 +4,7 @@ import type { Ref } from "vue";
|
|||
import { onUnmounted, ref, watch } from "vue";
|
||||
import { api } from "./os";
|
||||
import { useStream } from "./stream";
|
||||
import { me, isSignedIn } from "@/me";
|
||||
import { isSignedIn, me } from "@/me";
|
||||
|
||||
type StateDef = Record<
|
||||
string,
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import type { AsyncComponentLoader } from "vue";
|
||||
import { defineAsyncComponent, inject } from "vue";
|
||||
import { isEmojiMod, isModerator, me } from "@/me";
|
||||
import { Router } from "@/nirax";
|
||||
import MkError from "@/pages/_error_.vue";
|
||||
import MkLoading from "@/pages/_loading_.vue";
|
||||
import { me, isEmojiMod, isModerator } from "@/me";
|
||||
|
||||
const page = (loader: AsyncComponentLoader<any>) =>
|
||||
defineAsyncComponent({
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import type { Ref } from "vue";
|
||||
import { defineAsyncComponent } from "vue";
|
||||
import type { entities } from "firefish-js";
|
||||
import { me, isModerator, isSignedIn } from "@/me";
|
||||
import { isModerator, isSignedIn, me } from "@/me";
|
||||
import { i18n } from "@/i18n";
|
||||
import { instance } from "@/instance";
|
||||
import * as os from "@/os";
|
||||
|
|
|
@ -5,7 +5,7 @@ import copyToClipboard from "@/scripts/copy-to-clipboard";
|
|||
import { host } from "@/config";
|
||||
import * as os from "@/os";
|
||||
import { userActions } from "@/store";
|
||||
import { me, isModerator, isSignedIn } from "@/me";
|
||||
import { isModerator, isSignedIn, me } from "@/me";
|
||||
import { mainRouter } from "@/router";
|
||||
import type { Router } from "@/nirax";
|
||||
import icon from "@/scripts/icon";
|
||||
|
|
|
@ -2,7 +2,7 @@ import type { Ref } from "vue";
|
|||
import { onUnmounted } from "vue";
|
||||
import type { entities } from "firefish-js";
|
||||
import { useStream } from "@/stream";
|
||||
import { me, isSignedIn } from "@/me";
|
||||
import { isSignedIn, me } from "@/me";
|
||||
import * as os from "@/os";
|
||||
|
||||
export function useNoteCapture(props: {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { markRaw, ref } from "vue";
|
||||
import { Storage } from "./pizzax";
|
||||
import { isSignedIn } from "./me";
|
||||
import { Storage } from "./pizzax";
|
||||
|
||||
export const postFormActions = [];
|
||||
export const userActions = [];
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import type { Theme } from "./scripts/theme";
|
||||
import { isSignedIn, me } from "@/me";
|
||||
import { api } from "@/os";
|
||||
import { me, isSignedIn } from "@/me";
|
||||
|
||||
const lsCacheKey = isSignedIn ? `themes:${me.id}` : "";
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ import { swInject } from "./sw-inject";
|
|||
import { popup, popups } from "@/os";
|
||||
import { uploads } from "@/scripts/upload";
|
||||
import * as sound from "@/scripts/sound";
|
||||
import { me, isSignedIn } from "@/me";
|
||||
import { isSignedIn, me } from "@/me";
|
||||
import { useStream } from "@/stream";
|
||||
|
||||
const stream = useStream();
|
||||
|
|
|
@ -141,7 +141,7 @@ import { computed, defineAsyncComponent, toRef } from "vue";
|
|||
import * as os from "@/os";
|
||||
import { navbarItemDef } from "@/navbar";
|
||||
import { openAccountMenu as openAccountMenu_ } from "@/account";
|
||||
import { me, isModerator } from "@/me";
|
||||
import { isModerator, me } from "@/me";
|
||||
import { openHelpMenu_ } from "@/scripts/helpMenu";
|
||||
import { defaultStore } from "@/store";
|
||||
import { i18n } from "@/i18n";
|
||||
|
|
|
@ -155,7 +155,7 @@ import { computed, defineAsyncComponent, ref, watch } from "vue";
|
|||
import * as os from "@/os";
|
||||
import { navbarItemDef } from "@/navbar";
|
||||
import { openAccountMenu as openAccountMenu_ } from "@/account";
|
||||
import { me, isAdmin, isModerator } from "@/me";
|
||||
import { isAdmin, isModerator, me } from "@/me";
|
||||
import { openHelpMenu_ } from "@/scripts/helpMenu";
|
||||
import { defaultStore } from "@/store";
|
||||
import { i18n } from "@/i18n";
|
||||
|
|
|
@ -203,7 +203,7 @@ import XDrawerMenu from "@/ui/_common_/navbar-for-mobile.vue";
|
|||
import MkButton from "@/components/MkButton.vue";
|
||||
import * as os from "@/os";
|
||||
import { navbarItemDef } from "@/navbar";
|
||||
import { me, isSignedIn } from "@/me";
|
||||
import { isSignedIn, me } from "@/me";
|
||||
import { i18n } from "@/i18n";
|
||||
import { mainRouter } from "@/router";
|
||||
import { unisonReload } from "@/scripts/unison-reload";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Endpoints } from "./api.types";
|
||||
import type { Endpoints } from "./api.types";
|
||||
|
||||
const MK_API_ERROR = Symbol();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import {
|
||||
import type {
|
||||
Ad,
|
||||
Announcement,
|
||||
Antenna,
|
||||
|
@ -17,7 +17,7 @@ import {
|
|||
FollowingFollowerPopulated,
|
||||
GalleryPost,
|
||||
Instance,
|
||||
InstanceMetadata,
|
||||
// InstanceMetadata,
|
||||
LiteInstanceMetadata,
|
||||
MeDetailed,
|
||||
MessagingMessage,
|
||||
|
|
|
@ -11,7 +11,7 @@ export {
|
|||
Connection as ChannelConnection,
|
||||
StreamTypes,
|
||||
acct,
|
||||
Acct,
|
||||
type Acct,
|
||||
};
|
||||
|
||||
export const permissions = consts.permissions;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { EventEmitter } from "eventemitter3";
|
||||
import ReconnectingWebsocket from "reconnecting";
|
||||
import { BroadcastEvents, Channels } from "./streaming.types";
|
||||
import type { BroadcastEvents, Channels } from "./streaming.types";
|
||||
|
||||
function autobind(instance: any): void {
|
||||
const prototype = Object.getPrototypeOf(instance);
|
||||
|
|
Loading…
Reference in a new issue