hunk.code_window:   // Collect the keys affected by this update.
     const keys = new Set<string>()
     if (from) {
       findDefined(from, keys)
     } else {
       // Falsy values are deleted to avoid merging issues.
       delete props.from
     }
     if (is.obj(to)) {
       findDefined(to, keys)
     } else if (!to) {
       // Falsy values are deleted to avoid merging issues.
       delete props.to
     }
     // The "keys" prop helps in applying updates to affected keys only.
     props.keys = keys.size ? Array.from(keys) : null
     return props
  
hunk.labels: keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
hunk.after_edit:   if (is.obj(to)) findDefined(to, keys)
     if (is.obj(from)) findDefined(from, keys)
  
hunk.file_path: packages/core/src/SpringValue.ts
hunk.type: replace
file: declare module 'react-zdog' {
    export const addEffect: (cb: () => void) => void
    export const applyProps: (
      instance: any,
      newProps: any,
      oldProps?: any,
      accumulative?: boolean
    ) => void
    export const invalidate: () => void
    export const useRender: (fn: () => void, deps?: any[]) => void
  
    // Elements
    type ElementType = import('react').ElementType
    export const Illustration: ElementType
    export const Anchor: ElementType
    export const Shape: ElementType
    export const Group: ElementType
    export const Rect: ElementType
    export const RoundedRect: ElementType
    export const Ellipse: ElementType
    export const Polygon: ElementType
    export const Hemisphere: ElementType
    export const Cylinder: ElementType
    export const Cone: ElementType
    export const Box: ElementType
  }
  