MCPcopy Index your code
hub / github.com/fontsource/fontsource / getVariableId

Function getVariableId

api/metadata/src/variable/get.ts:21–33  ·  view source on GitHub ↗
(
	id: string,
	env: Env,
	ctx: ExecutionContext,
)

Source from the content-addressed store, hash-verified

19};
20
21export const getVariableId = async (
22 id: string,
23 env: Env,
24 ctx: ExecutionContext,
25) => {
26 const data = await getVariableList(env, ctx);
27
28 if (!data[id]) {
29 return;
30 }
31
32 return data[id];
33};
34
35export const getAxisRegistry = async (env: Env, ctx: ExecutionContext) => {
36 const value = await env.METADATA.get<AxisRegistry>(

Callers 1

router.tsFile · 0.90

Calls 1

getVariableListFunction · 0.85

Tested by

no test coverage detected