MCPcopy Create free account
hub / github.com/coder/coder / toUserSkillMetadata

Function toUserSkillMetadata

site/src/api/queries/userSkills.ts:10–18  ·  view source on GitHub ↗
(
	skill: TypesGen.UserSkill,
)

Source from the content-addressed store, hash-verified

8 [...userSkillsKey(user), name] as const;
9
10const toUserSkillMetadata = (
11 skill: TypesGen.UserSkill,
12): TypesGen.UserSkillMetadata => ({
13 id: skill.id,
14 name: skill.name,
15 description: skill.description,
16 created_at: skill.created_at,
17 updated_at: skill.updated_at,
18});
19
20const sortUserSkillMetadata = (
21 skills: TypesGen.UserSkillMetadata[],

Callers 2

createUserSkillFunction · 0.85
updateUserSkillFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected