@@ -16,6 +16,8 @@ type AccessTokenFormProps = {
type FormInputs = {
expiredAt: string;
description: string;
+ // biome-ignore lint/suspicious/noTsIgnore: Suppress auto fix by lefthook
+ // @ts-ignore - Scope type causes "Type instantiation is excessively deep" with tsgo
scopes: Scope[];
};
@@ -1,6 +1,8 @@
import { ALL_SIGN, type Scope } from '@growi/core/dist/interfaces';
// Data structure for the final merged scopes
+// biome-ignore lint/suspicious/noTsIgnore: Suppress auto fix by lefthook
+// @ts-ignore - Scope type causes "Type instantiation is excessively deep" with tsgo
interface ScopeMap {
[key: string]: Scope | ScopeMap;
}
@@ -3,6 +3,8 @@ import type { Scope } from '@growi/core/dist/interfaces';
export type IAccessTokenInfo = {
expiredAt: Date;
@@ -19,6 +19,8 @@ type GenerateTokenResult = {
token: string;
_id: Types.ObjectId;
scopes?: Scope[];
description?: string;
@@ -5,6 +5,8 @@ import {
type Scope,
} from '@growi/core/dist/interfaces';
export const isValidScope = (scope: Scope): boolean => {
const scopeParts = scope
.split(':')