MCPcopy
hub / github.com/pmndrs/react-spring / scenario

Function scenario

packages/core/src/hooks/useSpring.test-d.ts:27–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25 */
26it('per-key onChange: result.value should match the key value type', () => {
27 function scenario() {
28 useSpring({
29 x: 0,
30 onChange: {
31 // @ts-expect-error known limitation: result.value is `any`, not `number` (#2541)
32 x: result => expectTypeOf(result.value).toEqualTypeOf<number>(),
33 },
34 })
35 }
36 expectTypeOf(scenario).toBeFunction()
37})

Callers

nothing calls this directly

Calls 1

useSpringFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…