refactor: fix types

This commit is contained in:
syuilo 2023-02-17 15:39:10 +09:00
parent 60df819c60
commit 0f546b47d1
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import type { Schema } from '@/misc/schema.js'; import type { Schema } from '@/misc/schema.js';
import { RolePolicies } from '@/core/RoleService.js';
import * as ep___admin_meta from './endpoints/admin/meta.js'; import * as ep___admin_meta from './endpoints/admin/meta.js';
import * as ep___admin_abuseUserReports from './endpoints/admin/abuse-user-reports.js'; import * as ep___admin_abuseUserReports from './endpoints/admin/abuse-user-reports.js';
@ -659,7 +660,7 @@ export interface IEndpointMeta {
*/ */
readonly requireAdmin?: boolean; readonly requireAdmin?: boolean;
readonly requireRolePolicy?: string; readonly requireRolePolicy?: keyof RolePolicies;
/** /**
* *