mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-28 12:20:21 +01:00
refactor: fix types
This commit is contained in:
parent
60df819c60
commit
0f546b47d1
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* エンドポイントのリミテーションに関するやつ
|
* エンドポイントのリミテーションに関するやつ
|
||||||
|
|
Loading…
Reference in a new issue