fix frontend lint errors
This commit is contained in:
parent
0c9fe00c12
commit
3dda3d0675
3 changed files with 6 additions and 4 deletions
|
|
@ -27,17 +27,18 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
<script lang="ts" setup>
|
||||
import { useTemplateRef } from 'vue';
|
||||
import type { PostFormProps } from '@/types/post-form.js';
|
||||
import type * as Misskey from 'misskey-js';
|
||||
import MkModal from '@/components/MkModal.vue';
|
||||
import MkPostForm from '@/components/MkPostForm.vue';
|
||||
import * as Misskey from 'misskey-js';
|
||||
|
||||
const props = withDefaults(defineProps<PostFormProps & {
|
||||
instant?: boolean;
|
||||
fixed?: boolean;
|
||||
autofocus?: boolean;
|
||||
editId?: Misskey.entities.Note["id"];
|
||||
editId?: Misskey.entities.Note['id'];
|
||||
}>(), {
|
||||
initialLocalOnly: undefined,
|
||||
editId: undefined,
|
||||
});
|
||||
|
||||
const emit = defineEmits<{
|
||||
|
|
|
|||
|
|
@ -104,7 +104,8 @@ export class Pizzax<T extends StateDef> {
|
|||
return value;
|
||||
}
|
||||
|
||||
private async init(): Promise<void> {
|
||||
// Must be public for Storybook
|
||||
public async init(): Promise<void> {
|
||||
await this.migrate();
|
||||
|
||||
const deviceState: State<T> = await get(this.deviceStateKeyName) || {};
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import * as Misskey from 'misskey-js';
|
||||
import type * as Misskey from 'misskey-js';
|
||||
|
||||
export interface PostFormProps {
|
||||
reply?: Misskey.entities.Note;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue