Skip to content

Function: getProjectTypeByKey() ​

ts
function getProjectTypeByKey(
   client, 
   parameters, 
   options?
): Promise<{
[key: string]: unknown;
  color?: string;
  descriptionI18nKey?: string;
  formattedKey?: string;
  icon?: string;
  key?: string;
}>;

Defined in: src/server/api/projects.ts:138

Returns the project type with the given key. In case of anonymous checks if they can access at least one project.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ projectTypeKey: string; }-
parameters.projectTypeKeystringThe key of the project type
options?RequestOptions-

Returns ​

Promise<{ [key: string]: unknown; color?: string; descriptionI18nKey?: string; formattedKey?: string; icon?: string; key?: string; }>