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

Function validate

packages/cli/src/custom/create.ts:26–29  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

24 message: colors.bold('What is the name of the font?'),
25 placeholder: 'Noto Sans JP',
26 validate(value) {
27 if (!value) return 'Please enter a name';
28 return;
29 },
30 }),
31 // TODO: Add support for multiple subsets
32 /*

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected