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

Function integerField

src/commands/command-input.ts:164–171  ·  view source on GitHub ↗
(
  description?: string,
  options: { min?: number; max?: number } = {},
)

Source from the content-addressed store, hash-verified

162}
163
164export function integerField(
165 description?: string,
166 options: { min?: number; max?: number } = {},
167): CommandField<number> {
168 return optionalField(integerSchemaWithBounds(description, options), (record, key) =>
169 optionalInteger(record, key, options),
170 );
171}
172
173export function booleanField(description?: string): CommandField<boolean> {
174 return optionalField(booleanSchema(description), optionalBoolean);

Callers 15

index.tsFile · 0.90
diff.tsFile · 0.90
wait.tsFile · 0.90
screenshot.tsFile · 0.90
alert.tsFile · 0.90
snapshot.tsFile · 0.90
index.tsFile · 0.90
index.tsFile · 0.90
index.tsFile · 0.90
install.tsFile · 0.90
prepare.tsFile · 0.90
viewport.tsFile · 0.90

Calls 3

optionalFieldFunction · 0.85
integerSchemaWithBoundsFunction · 0.85
optionalIntegerFunction · 0.70

Tested by

no test coverage detected