MCPcopy Create free account
hub / github.com/cursor/cookbook / hasStringProperty

Function hasStringProperty

sdk/coding-agent-cli/src/tui/App.tsx:1167–1173  ·  view source on GitHub ↗
(value: unknown, key: K)

Source from the content-addressed store, hash-verified

1165}
1166
1167function hasStringProperty<K extends string>(value: unknown, key: K): value is Record<K, string> {
1168 if (typeof value !== "object" || value === null || !(key in value)) {
1169 return false
1170 }
1171
1172 return typeof Object.getOwnPropertyDescriptor(value, key)?.value === "string"
1173}
1174
1175function getInputCharacter(key: KeyEvent) {
1176 if (key.ctrl || key.meta || key.name.length !== 1) {

Callers 1

isModelSelectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected