mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-22 20:45:13 +00: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 { RolePolicies } from '@/core/RoleService.js';
|
||||
|
||||
import * as ep___admin_meta from './endpoints/admin/meta.js';
|
||||
import * as ep___admin_abuseUserReports from './endpoints/admin/abuse-user-reports.js';
|
||||
|
@ -659,7 +660,7 @@ export interface IEndpointMeta {
|
|||
*/
|
||||
readonly requireAdmin?: boolean;
|
||||
|
||||
readonly requireRolePolicy?: string;
|
||||
readonly requireRolePolicy?: keyof RolePolicies;
|
||||
|
||||
/**
|
||||
* エンドポイントのリミテーションに関するやつ
|
||||
|
|
Loading…
Reference in a new issue