chore: lint

This commit is contained in:
naskya 2024-04-18 05:34:23 +09:00
parent 78092cd4be
commit 9d87679800
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C
33 changed files with 45 additions and 43 deletions

View file

@ -67,12 +67,12 @@
<script lang="ts" setup> <script lang="ts" setup>
import { ref } from "vue"; import { ref } from "vue";
import type { entities } from "firefish-js";
import MkButton from "@/components/MkButton.vue"; import MkButton from "@/components/MkButton.vue";
import MkSwitch from "@/components/form/switch.vue"; import MkSwitch from "@/components/form/switch.vue";
import MkKeyValue from "@/components/MkKeyValue.vue"; import MkKeyValue from "@/components/MkKeyValue.vue";
import * as os from "@/os"; import * as os from "@/os";
import { i18n } from "@/i18n"; import { i18n } from "@/i18n";
import type { entities } from "firefish-js";
const props = defineProps<{ const props = defineProps<{
report: entities.AbuseUserReport; report: entities.AbuseUserReport;

View file

@ -30,12 +30,12 @@
<script lang="ts" setup> <script lang="ts" setup>
import { shallowRef } from "vue"; import { shallowRef } from "vue";
import type { entities } from "firefish-js";
import MkModal from "@/components/MkModal.vue"; import MkModal from "@/components/MkModal.vue";
import MkSparkle from "@/components/MkSparkle.vue"; import MkSparkle from "@/components/MkSparkle.vue";
import MkButton from "@/components/MkButton.vue"; import MkButton from "@/components/MkButton.vue";
import { i18n } from "@/i18n"; import { i18n } from "@/i18n";
import * as os from "@/os"; import * as os from "@/os";
import type { entities } from "firefish-js";
const props = defineProps<{ const props = defineProps<{
announcement: entities.Announcement; announcement: entities.Announcement;

View file

@ -8,8 +8,8 @@
<script lang="ts" setup> <script lang="ts" setup>
import { onMounted, ref } from "vue"; import { onMounted, ref } from "vue";
import * as os from "@/os";
import type { entities } from "firefish-js"; import type { entities } from "firefish-js";
import * as os from "@/os";
const props = defineProps<{ const props = defineProps<{
userIds: string[]; userIds: string[];

View file

@ -24,10 +24,10 @@
<script lang="ts" setup> <script lang="ts" setup>
import { ref } from "vue"; import { ref } from "vue";
import type { entities } from "firefish-js";
import * as os from "@/os"; import * as os from "@/os";
import { i18n } from "@/i18n"; import { i18n } from "@/i18n";
import icon from "@/scripts/icon"; import icon from "@/scripts/icon";
import type { entities } from "firefish-js";
const props = withDefaults( const props = withDefaults(
defineProps<{ defineProps<{

View file

@ -52,9 +52,9 @@
<script lang="ts" setup> <script lang="ts" setup>
import { computed } from "vue"; import { computed } from "vue";
import type { entities } from "firefish-js";
import { i18n } from "@/i18n"; import { i18n } from "@/i18n";
import icon from "@/scripts/icon"; import icon from "@/scripts/icon";
import type { entities } from "firefish-js";
const props = defineProps<{ const props = defineProps<{
channel: entities.Channel; channel: entities.Channel;

View file

@ -1,5 +1,6 @@
<template> <template>
<div <div
ref="el"
v-size="{ max: [380] }" v-size="{ max: [380] }"
class="ukygtjoj _panel" class="ukygtjoj _panel"
:class="{ :class="{
@ -9,7 +10,6 @@
scrollable, scrollable,
closed: !showBody, closed: !showBody,
}" }"
ref="el"
> >
<header v-if="showHeader" ref="header"> <header v-if="showHeader" ref="header">
<div class="title"><slot name="header"></slot></div> <div class="title"><slot name="header"></slot></div>

View file

@ -33,9 +33,9 @@
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import type { entities } from "firefish-js";
import ImgWithBlurhash from "@/components/MkImgWithBlurhash.vue"; import ImgWithBlurhash from "@/components/MkImgWithBlurhash.vue";
import { i18n } from "@/i18n"; import { i18n } from "@/i18n";
import type { entities } from "firefish-js";
defineProps<{ defineProps<{
post: entities.GalleryPost; post: entities.GalleryPost;

View file

@ -44,6 +44,7 @@
<script lang="ts" setup> <script lang="ts" setup>
import { onMounted, ref, shallowRef } from "vue"; import { onMounted, ref, shallowRef } from "vue";
import { Chart } from "chart.js"; import { Chart } from "chart.js";
import type { entities } from "firefish-js";
import MkSelect from "@/components/form/select.vue"; import MkSelect from "@/components/form/select.vue";
import MkChart from "@/components/MkChart.vue"; import MkChart from "@/components/MkChart.vue";
import { useChartTooltip } from "@/scripts/use-chart-tooltip"; import { useChartTooltip } from "@/scripts/use-chart-tooltip";
@ -52,7 +53,6 @@ import { i18n } from "@/i18n";
import MkActiveUsersHeatmap from "@/components/MkActiveUsersHeatmap.vue"; import MkActiveUsersHeatmap from "@/components/MkActiveUsersHeatmap.vue";
import MkFolder from "@/components/MkFolder.vue"; import MkFolder from "@/components/MkFolder.vue";
import { initChart } from "@/scripts/init-chart"; import { initChart } from "@/scripts/init-chart";
import type { entities } from "firefish-js";
initChart(); initChart();

View file

@ -17,10 +17,10 @@
<script lang="ts" setup> <script lang="ts" setup>
import { ref } from "vue"; import { ref } from "vue";
import type { entities } from "firefish-js";
import { instanceName, version } from "@/config"; import { instanceName, version } from "@/config";
import { instance as Instance } from "@/instance"; import { instance as Instance } from "@/instance";
import { getProxiedImageUrlNullable } from "@/scripts/media-proxy"; import { getProxiedImageUrlNullable } from "@/scripts/media-proxy";
import type { entities } from "firefish-js";
const props = defineProps<{ const props = defineProps<{
instance?: entities.InstanceLite; instance?: entities.InstanceLite;

View file

@ -69,6 +69,7 @@
import { computed, onBeforeUnmount, onMounted, ref } from "vue"; import { computed, onBeforeUnmount, onMounted, ref } from "vue";
import insertTextAtCursor from "insert-text-at-cursor"; import insertTextAtCursor from "insert-text-at-cursor";
import { length } from "stringz"; import { length } from "stringz";
import type { entities } from "firefish-js";
import * as os from "@/os"; import * as os from "@/os";
import MkModal from "@/components/MkModal.vue"; import MkModal from "@/components/MkModal.vue";
import MkButton from "@/components/MkButton.vue"; import MkButton from "@/components/MkButton.vue";
@ -76,7 +77,6 @@ import bytes from "@/filters/bytes";
import number from "@/filters/number"; import number from "@/filters/number";
import { i18n } from "@/i18n"; import { i18n } from "@/i18n";
import { instance } from "@/instance"; import { instance } from "@/instance";
import type { entities } from "firefish-js";
const props = withDefaults( const props = withDefaults(
defineProps<{ defineProps<{

View file

@ -40,12 +40,12 @@
<script lang="ts" setup> <script lang="ts" setup>
import { ref } from "vue"; import { ref } from "vue";
import type { entities } from "firefish-js";
import type { import type {
MkPaginationType, MkPaginationType,
PagingKeyOf, PagingKeyOf,
PagingOf, PagingOf,
} from "@/components/MkPagination.vue"; } from "@/components/MkPagination.vue";
import type { entities } from "firefish-js";
import XNote from "@/components/MkNote.vue"; import XNote from "@/components/MkNote.vue";
import XList from "@/components/MkDateSeparatedList.vue"; import XList from "@/components/MkDateSeparatedList.vue";
import MkPagination from "@/components/MkPagination.vue"; import MkPagination from "@/components/MkPagination.vue";

View file

@ -272,6 +272,8 @@
<script lang="ts" setup> <script lang="ts" setup>
import { onMounted, onUnmounted, ref, toRef, watch } from "vue"; import { onMounted, onUnmounted, ref, toRef, watch } from "vue";
import type { entities } from "firefish-js"; import type { entities } from "firefish-js";
import type { Connection } from "firefish-js/src/streaming";
import type { Channels } from "firefish-js/src/streaming.types";
import XReactionIcon from "@/components/MkReactionIcon.vue"; import XReactionIcon from "@/components/MkReactionIcon.vue";
import MkFollowButton from "@/components/MkFollowButton.vue"; import MkFollowButton from "@/components/MkFollowButton.vue";
import XReactionTooltip from "@/components/MkReactionTooltip.vue"; import XReactionTooltip from "@/components/MkReactionTooltip.vue";
@ -285,8 +287,6 @@ import { useTooltip } from "@/scripts/use-tooltip";
import { defaultStore } from "@/store"; import { defaultStore } from "@/store";
import { instance } from "@/instance"; import { instance } from "@/instance";
import icon from "@/scripts/icon"; import icon from "@/scripts/icon";
import type { Connection } from "firefish-js/src/streaming";
import type { Channels } from "firefish-js/src/streaming.types";
const props = withDefaults( const props = withDefaults(
defineProps<{ defineProps<{

View file

@ -16,10 +16,10 @@
<script lang="ts" setup> <script lang="ts" setup>
import { onMounted, ref } from "vue"; import { onMounted, ref } from "vue";
import type { entities } from "firefish-js";
import XNotification from "@/components/MkNotification.vue"; import XNotification from "@/components/MkNotification.vue";
import * as os from "@/os"; import * as os from "@/os";
import { defaultStore } from "@/store"; import { defaultStore } from "@/store";
import type { entities } from "firefish-js";
defineProps<{ defineProps<{
notification: entities.Notification; notification: entities.Notification;

View file

@ -34,9 +34,9 @@
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import type { entities } from "firefish-js";
import { userName } from "@/filters/user"; import { userName } from "@/filters/user";
import { ui } from "@/config"; import { ui } from "@/config";
import type { entities } from "firefish-js";
defineProps<{ defineProps<{
page: entities.Page; page: entities.Page;

View file

@ -20,9 +20,9 @@
<script lang="ts" setup> <script lang="ts" setup>
import type { Ref } from "vue"; import type { Ref } from "vue";
import type { entities } from "firefish-js";
import MkTooltip from "./MkTooltip.vue"; import MkTooltip from "./MkTooltip.vue";
import XReactionIcon from "@/components/MkReactionIcon.vue"; import XReactionIcon from "@/components/MkReactionIcon.vue";
import type { entities } from "firefish-js";
defineProps<{ defineProps<{
showing: Ref<boolean>; showing: Ref<boolean>;

View file

@ -3,8 +3,8 @@
ref="tooltip" ref="tooltip"
:target-element="targetElement" :target-element="targetElement"
:max-width="340" :max-width="340"
@closed="emit('closed')"
:showing="showing" :showing="showing"
@closed="emit('closed')"
> >
<div class="bqxuuuey"> <div class="bqxuuuey">
<div class="reaction"> <div class="reaction">
@ -31,9 +31,9 @@
<script lang="ts" setup> <script lang="ts" setup>
import type { Ref } from "vue"; import type { Ref } from "vue";
import type { entities } from "firefish-js";
import MkTooltip from "./MkTooltip.vue"; import MkTooltip from "./MkTooltip.vue";
import XReactionIcon from "@/components/MkReactionIcon.vue"; import XReactionIcon from "@/components/MkReactionIcon.vue";
import type { entities } from "firefish-js";
defineProps<{ defineProps<{
showing: Ref<boolean>; showing: Ref<boolean>;

View file

@ -136,6 +136,7 @@
<script lang="ts" setup> <script lang="ts" setup>
import { defineAsyncComponent, ref } from "vue"; import { defineAsyncComponent, ref } from "vue";
import { toUnicode } from "punycode/"; import { toUnicode } from "punycode/";
import type { entities } from "firefish-js";
import MkButton from "@/components/MkButton.vue"; import MkButton from "@/components/MkButton.vue";
import MkInput from "@/components/form/input.vue"; import MkInput from "@/components/form/input.vue";
import MkInfo from "@/components/MkInfo.vue"; import MkInfo from "@/components/MkInfo.vue";
@ -145,7 +146,6 @@ import * as os from "@/os";
import { signIn } from "@/account"; import { signIn } from "@/account";
import { i18n } from "@/i18n"; import { i18n } from "@/i18n";
import icon from "@/scripts/icon"; import icon from "@/scripts/icon";
import type { entities } from "firefish-js";
const signing = ref(false); const signing = ref(false);
const user = ref<entities.UserDetailed | null>(null); const user = ref<entities.UserDetailed | null>(null);

View file

@ -26,6 +26,7 @@
<script lang="ts" setup> <script lang="ts" setup>
import { ref } from "vue"; import { ref } from "vue";
import type { entities } from "firefish-js";
import MkUserInfo from "@/components/MkUserInfo.vue"; import MkUserInfo from "@/components/MkUserInfo.vue";
import type { import type {
MkPaginationType, MkPaginationType,
@ -34,7 +35,6 @@ import type {
} from "@/components/MkPagination.vue"; } from "@/components/MkPagination.vue";
import MkPagination from "@/components/MkPagination.vue"; import MkPagination from "@/components/MkPagination.vue";
import { i18n } from "@/i18n"; import { i18n } from "@/i18n";
import type { entities } from "firefish-js";
defineProps<{ defineProps<{
pagination: PagingOf<entities.UserDetailed>; pagination: PagingOf<entities.UserDetailed>;

View file

@ -3,8 +3,8 @@
ref="tooltip" ref="tooltip"
:target-element="targetElement" :target-element="targetElement"
:max-width="250" :max-width="250"
@closed="emit('closed')"
:showing="showing" :showing="showing"
@closed="emit('closed')"
> >
<div class="beaffaef"> <div class="beaffaef">
<div v-for="u in users" :key="u.id" class="user"> <div v-for="u in users" :key="u.id" class="user">
@ -20,8 +20,8 @@
<script lang="ts" setup> <script lang="ts" setup>
import type { Ref } from "vue"; import type { Ref } from "vue";
import MkTooltip from "./MkTooltip.vue";
import type { entities } from "firefish-js"; import type { entities } from "firefish-js";
import MkTooltip from "./MkTooltip.vue";
defineProps<{ defineProps<{
showing: Ref<boolean>; showing: Ref<boolean>;

View file

@ -29,7 +29,8 @@
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { MaybeRef, shallowRef, watch, unref } from "vue"; import type { MaybeRef } from "vue";
import { shallowRef, unref, watch } from "vue";
import MkModal from "@/components/MkModal.vue"; import MkModal from "@/components/MkModal.vue";
import iconify from "@/scripts/icon"; import iconify from "@/scripts/icon";

View file

@ -1,7 +1,7 @@
// TODO: なんでもかんでもos.tsに突っ込むのやめたいのでよしなに分割する // TODO: なんでもかんでもos.tsに突っ込むのやめたいのでよしなに分割する
import { EventEmitter } from "eventemitter3"; import { EventEmitter } from "eventemitter3";
import { type entities, api as firefishApi, type Endpoints } from "firefish-js"; import { type Endpoints, type entities, api as firefishApi } from "firefish-js";
import insertTextAtCursor from "insert-text-at-cursor"; import insertTextAtCursor from "insert-text-at-cursor";
import type { Component, Ref } from "vue"; import type { Component, Ref } from "vue";
import { defineAsyncComponent, markRaw, ref } from "vue"; import { defineAsyncComponent, markRaw, ref } from "vue";
@ -176,12 +176,12 @@ export function promiseDialog<T>(
let popupIdCount = 0; let popupIdCount = 0;
type PopupType = { interface PopupType {
id: number; id: number;
component: Component; component: Component;
props: Record<string, unknown>; props: Record<string, unknown>;
events: Record<string, unknown>; events: Record<string, unknown>;
}; }
export const popups = ref<PopupType[]>([]); export const popups = ref<PopupType[]>([]);
const zIndexes = { const zIndexes = {

View file

@ -93,6 +93,7 @@
<script lang="ts" setup> <script lang="ts" setup>
import { computed, ref } from "vue"; import { computed, ref } from "vue";
import type { entities } from "firefish-js";
import MkSelect from "@/components/form/select.vue"; import MkSelect from "@/components/form/select.vue";
import MkPagination, { import MkPagination, {
type MkPaginationType, type MkPaginationType,
@ -101,7 +102,6 @@ import XAbuseReport from "@/components/MkAbuseReport.vue";
import { i18n } from "@/i18n"; import { i18n } from "@/i18n";
import { definePageMetadata } from "@/scripts/page-metadata"; import { definePageMetadata } from "@/scripts/page-metadata";
import icon from "@/scripts/icon"; import icon from "@/scripts/icon";
import type { entities } from "firefish-js";
const reports = ref<MkPaginationType<typeof pagination.endpoint> | null>(null); const reports = ref<MkPaginationType<typeof pagination.endpoint> | null>(null);

View file

@ -41,6 +41,7 @@
<script lang="ts" setup> <script lang="ts" setup>
import { computed, ref, watch } from "vue"; import { computed, ref, watch } from "vue";
import type { entities } from "firefish-js";
import MkTextarea from "@/components/form/textarea.vue"; import MkTextarea from "@/components/form/textarea.vue";
import MkButton from "@/components/MkButton.vue"; import MkButton from "@/components/MkButton.vue";
import MkInput from "@/components/form/input.vue"; import MkInput from "@/components/form/input.vue";
@ -50,7 +51,6 @@ import { useRouter } from "@/router";
import { definePageMetadata } from "@/scripts/page-metadata"; import { definePageMetadata } from "@/scripts/page-metadata";
import { i18n } from "@/i18n"; import { i18n } from "@/i18n";
import icon from "@/scripts/icon"; import icon from "@/scripts/icon";
import type { entities } from "firefish-js";
const router = useRouter(); const router = useRouter();

View file

@ -96,6 +96,7 @@
<script lang="ts" setup> <script lang="ts" setup>
import { computed, ref, watch } from "vue"; import { computed, ref, watch } from "vue";
import type { entities } from "firefish-js";
import XPostForm from "@/components/MkPostForm.vue"; import XPostForm from "@/components/MkPostForm.vue";
import XTimeline from "@/components/MkTimeline.vue"; import XTimeline from "@/components/MkTimeline.vue";
import XChannelFollowButton from "@/components/MkChannelFollowButton.vue"; import XChannelFollowButton from "@/components/MkChannelFollowButton.vue";
@ -105,7 +106,6 @@ import { me } from "@/me";
import { i18n } from "@/i18n"; import { i18n } from "@/i18n";
import { definePageMetadata } from "@/scripts/page-metadata"; import { definePageMetadata } from "@/scripts/page-metadata";
import icon from "@/scripts/icon"; import icon from "@/scripts/icon";
import type { entities } from "firefish-js";
const router = useRouter(); const router = useRouter();

View file

@ -112,6 +112,7 @@
import { computed, onMounted, ref, watch } from "vue"; import { computed, onMounted, ref, watch } from "vue";
import { Virtual } from "swiper/modules"; import { Virtual } from "swiper/modules";
import { Swiper, SwiperSlide } from "swiper/vue"; import { Swiper, SwiperSlide } from "swiper/vue";
import type { Swiper as SwiperType } from "swiper/types";
import MkChannelList from "@/components/MkChannelList.vue"; import MkChannelList from "@/components/MkChannelList.vue";
import MkInput from "@/components/form/input.vue"; import MkInput from "@/components/form/input.vue";
import MkRadios from "@/components/form/radios.vue"; import MkRadios from "@/components/form/radios.vue";
@ -125,7 +126,6 @@ import { defaultStore } from "@/store";
import icon from "@/scripts/icon"; import icon from "@/scripts/icon";
import "swiper/scss"; import "swiper/scss";
import "swiper/scss/virtual"; import "swiper/scss/virtual";
import type { Swiper as SwiperType } from "swiper/types";
const router = useRouter(); const router = useRouter();

View file

@ -150,6 +150,7 @@
<script lang="ts" setup> <script lang="ts" setup>
import { computed, ref, watch } from "vue"; import { computed, ref, watch } from "vue";
import type { entities } from "firefish-js";
import MkButton from "@/components/MkButton.vue"; import MkButton from "@/components/MkButton.vue";
import * as os from "@/os"; import * as os from "@/os";
import MkContainer from "@/components/MkContainer.vue"; import MkContainer from "@/components/MkContainer.vue";
@ -164,7 +165,6 @@ import { shareAvailable } from "@/scripts/share-available";
import { defaultStore } from "@/store"; import { defaultStore } from "@/store";
import icon from "@/scripts/icon"; import icon from "@/scripts/icon";
import { isSignedIn, me } from "@/me"; import { isSignedIn, me } from "@/me";
import type { entities } from "firefish-js";
const router = useRouter(); const router = useRouter();

View file

@ -54,7 +54,8 @@
<script lang="ts" setup> <script lang="ts" setup>
import { computed, onActivated, onDeactivated, ref } from "vue"; import { computed, onActivated, onDeactivated, ref } from "vue";
import MkPagination, { MkPaginationType } from "@/components/MkPagination.vue"; import type { MkPaginationType } from "@/components/MkPagination.vue";
import MkPagination from "@/components/MkPagination.vue";
import MkButton from "@/components/MkButton.vue"; import MkButton from "@/components/MkButton.vue";
import MkInfo from "@/components/MkInfo.vue"; import MkInfo from "@/components/MkInfo.vue";
import { i18n } from "@/i18n"; import { i18n } from "@/i18n";

View file

@ -34,10 +34,10 @@
<script lang="ts" setup> <script lang="ts" setup>
import { computed, onMounted, ref } from "vue"; import { computed, onMounted, ref } from "vue";
import type { entities } from "firefish-js";
import MkPagination, { import MkPagination, {
type MkPaginationType, type MkPaginationType,
} from "@/components/MkPagination.vue"; } from "@/components/MkPagination.vue";
import type { entities } from "firefish-js";
import { api } from "@/os"; import { api } from "@/os";
import XList from "@/components/MkDateSeparatedList.vue"; import XList from "@/components/MkDateSeparatedList.vue";
import XNote from "@/components/MkNote.vue"; import XNote from "@/components/MkNote.vue";

View file

@ -1,13 +1,13 @@
import { onDeactivated, onUnmounted, ref } from "vue"; import { onDeactivated, onUnmounted, ref } from "vue";
import type { Color, TooltipOptions } from "chart.js";
import * as os from "@/os"; import * as os from "@/os";
import MkChartTooltip from "@/components/MkChartTooltip.vue"; import MkChartTooltip from "@/components/MkChartTooltip.vue";
import type { Color, TooltipOptions } from "chart.js";
type ToolTipSerie = { interface ToolTipSerie {
backgroundColor: Color; backgroundColor: Color;
borderColor: Color; borderColor: Color;
text: string; text: string;
}; }
export function useChartTooltip( export function useChartTooltip(
opts: { position: "top" | "middle" } = { position: "top" }, opts: { position: "top" | "middle" } = { position: "top" },

View file

@ -1,8 +1,8 @@
import { markRaw, ref } from "vue"; import { markRaw, ref } from "vue";
import type { ApiTypes, entities } from "firefish-js";
import { isSignedIn } from "./me"; import { isSignedIn } from "./me";
import { Storage } from "./pizzax"; import { Storage } from "./pizzax";
import type { NoteVisibility } from "@/types/note"; import type { NoteVisibility } from "@/types/note";
import type { entities, ApiTypes } from "firefish-js";
export const postFormActions: { export const postFormActions: {
title: string; title: string;

View file

@ -1,9 +1,9 @@
export type BaseFormItem = { export interface BaseFormItem {
hidden?: boolean; hidden?: boolean;
label?: string; label?: string;
description?: string; description?: string;
required?: boolean; required?: boolean;
}; }
export type FormItemTextInput = BaseFormItem & { export type FormItemTextInput = BaseFormItem & {
type: "string"; type: "string";

View file

@ -2,7 +2,7 @@ import type { noteVisibilities } from "firefish-js";
export type NoteVisibility = (typeof noteVisibilities)[number] | "private"; export type NoteVisibility = (typeof noteVisibilities)[number] | "private";
export type NoteTranslation = { export interface NoteTranslation {
sourceLang: string; sourceLang: string;
text: string; text: string;
}; }

View file

@ -1,11 +1,11 @@
import type { entities } from "firefish-js"; import type { entities } from "firefish-js";
export type PollType = { export interface PollType {
choices: string[]; choices: string[];
multiple: boolean; multiple: boolean;
expiresAt: string | null; expiresAt: string | null;
expiredAfter: number | null; expiredAfter: number | null;
}; }
export type NoteDraft = entities.Note & { export type NoteDraft = entities.Note & {
poll?: PollType; poll?: PollType;