MCPcopy Create free account
hub / github.com/TanStack/ai / valueOf

Function valueOf

codemods/move-sampling-to-model-options/transform.ts:174–176  ·  view source on GitHub ↗

* Extract the value expression of a property, expanding shorthand. For a * shorthand `{ temperature }`, the value is the `temperature` Identifier, * which is exactly the reference we want to preserve when relocating.

(prop: Property)

Source from the content-addressed store, hash-verified

172 * which is exactly the reference we want to preserve when relocating.
173 */
174function valueOf(prop: Property): Property['value'] {
175 return prop.value
176}
177
178/** The first object-literal argument of a call, or undefined. */
179function firstObjectArg(node: CallExpression): ObjectExpression | undefined {

Callers 1

transformFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected