MCPcopy Index your code
hub / github.com/callstack/agent-device / requiredField

Function requiredField

src/commands/command-input.ts:148–154  ·  view source on GitHub ↗
(
  field: CommandField<T>,
)

Source from the content-addressed store, hash-verified

146 AgentDeviceSelectionOptions;
147
148export function requiredField<T>(
149 field: CommandField<T>,
150): CommandField<Exclude<T, undefined>> & { required: true } {
151 return { ...field, required: true } as CommandField<Exclude<T, undefined>> & {
152 required: true;
153 };
154}
155
156export function stringField(description?: string): CommandField<string> {
157 return optionalField(stringSchema(description), optionalString);

Callers 14

index.tsFile · 0.90
diff.tsFile · 0.90
settings.tsFile · 0.90
index.tsFile · 0.90
index.tsFile · 0.90
index.tsFile · 0.90
index.tsFile · 0.90
index.tsFile · 0.90
install.tsFile · 0.90
push.tsFile · 0.90
prepare.tsFile · 0.90
viewport.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected