MCPcopy Create free account
hub / github.com/fontsource/fontsource / validate

Function validate

packages/cli/src/custom/verify.ts:94–98  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

92 message: colors.bold('What is the ID of the font?'),
93 placeholder: 'noto-sans-jp',
94 validate(value) {
95 if (!value) return 'Please enter an ID.';
96
97 return;
98 },
99 }),
100 });
101 id = cfg.id;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected