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
| Parameter | Type | Description |
|---|---|---|
client | Client | - |
parameters | { projectTypeKey: string; } | - |
parameters.projectTypeKey | string | The key of the project type |
options? | RequestOptions | - |
Returns
Promise<{ [key: string]: unknown; color?: string; descriptionI18nKey?: string; formattedKey?: string; icon?: string; key?: string; }>