UNPKG

@choerodon/master

Version:
24 lines (23 loc) 950 B
/// <reference types="react" /> import { PENDING, SUCCESS, FAILURE } from './stores/CONSTANTS'; declare type PermissionStatusProps = typeof PENDING | typeof SUCCESS | typeof FAILURE; declare type judgeServiceProps = { code: string; type?: Pick<PermissionProps, 'type'>; organizationId: Pick<PermissionProps, 'organizationId'>; projectId: Pick<PermissionProps, 'projectId'>; }; declare type PermissionType = 'site' | 'organization' | 'project' | string; declare type PermissionService = string[]; declare type PermissionProps = { service?: PermissionService; type?: PermissionType; projectId?: string | number; organizationId?: string | number; defaultChildren?: React.ReactElement; noAccessChildren?: React.ReactElement; onAccess?: CallableFunction; AppState?: any; [fields: string]: any; }; export { PermissionProps, judgeServiceProps, PermissionStatusProps, PermissionType, PermissionService, };