{
  "id": "@typed/fx/RefArray#groupBy",
  "canonicalId": "@typed/fx/RefArray#groupBy",
  "symbol": {
    "id": "@typed/fx/RefArray#groupBy",
    "packageName": "@typed/fx",
    "moduleName": "RefArray",
    "exportName": "groupBy",
    "kind": "constant",
    "signatures": [
      "export declare const groupBy: {\n    <A>(f: (a: A) => string): <E, R>(ref: RefArray<A, E, R>) => RefSubject.Computed<R, E, Record<string, ReadonlyArray<A>>>;\n    <A, E, R>(ref: RefArray<A, E, R>, f: (a: A) => string): RefSubject.Computed<R, E, Record<string, ReadonlyArray<A>>>;\n};"
    ],
    "summary": "Group the values of a RefArray by a key.",
    "sections": {
      "Why": "Projects array state with group by for both current reads and future pushes, avoiding a second\nmutable cache of the derived value.",
      "Ownership and lifetime": "The group by view retains no independent state. An Effect read samples the source once; Fx\nobservation follows later pushes and its observing Scope owns subscription cleanup."
    },
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/fx/src/RefSubject/RefArray.ts",
      "line": 324
    },
    "since": "1.18.0",
    "category": "Derived queries"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx/RefArray#groupBy",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.7",
    "moduleName": "RefArray",
    "consumerSpecifier": "@typed/fx/RefArray",
    "exportName": "groupBy",
    "qualifiedName": "groupBy",
    "declarationKey": "declaration:f001e74b23ad847052803bbb",
    "family": "variable",
    "signatures": [
      "export declare const groupBy: {\n    <A>(f: (a: A) => string): <E, R>(ref: RefArray<A, E, R>) => RefSubject.Computed<R, E, Record<string, ReadonlyArray<A>>>;\n    <A, E, R>(ref: RefArray<A, E, R>, f: (a: A) => string): RefSubject.Computed<R, E, Record<string, ReadonlyArray<A>>>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefArray.ts",
        "start": {
          "line": 324,
          "column": 14
        },
        "end": {
          "line": 334,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefArray.ts",
        "start": {
          "line": 325,
          "column": 3
        },
        "end": {
          "line": 327,
          "column": 100
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefArray.ts",
        "start": {
          "line": 328,
          "column": 3
        },
        "end": {
          "line": 331,
          "column": 66
        }
      }
    ],
    "aliases": [
      "@typed/fx#RefArray.groupBy"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:f001e74b23ad847052803bbb",
    "name": "groupBy",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const groupBy: {\n    <A>(f: (a: A) => string): <E, R>(ref: RefArray<A, E, R>) => RefSubject.Computed<R, E, Record<string, ReadonlyArray<A>>>;\n    <A, E, R>(ref: RefArray<A, E, R>, f: (a: A) => string): RefSubject.Computed<R, E, Record<string, ReadonlyArray<A>>>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefArray.ts",
            "start": {
              "line": 324,
              "column": 14
            },
            "end": {
              "line": 334,
              "column": 3
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<A>(f: (a: A) => string): <E, R>(ref: RefArray<A, E, R>) => RefSubject.Computed<R, E, Record<string, ReadonlyArray<A>>>;",
          "<A, E, R>(ref: RefArray<A, E, R>, f: (a: A) => string): RefSubject.Computed<R, E, Record<string, ReadonlyArray<A>>>;"
        ],
        "typeParameters": [
          "A",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefArray.ts",
            "start": {
              "line": 325,
              "column": 3
            },
            "end": {
              "line": 327,
              "column": 100
            }
          },
          {
            "file": "packages/fx/src/RefSubject/RefArray.ts",
            "start": {
              "line": 328,
              "column": 3
            },
            "end": {
              "line": 331,
              "column": 66
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const groupBy: {\n    <A>(f: (a: A) => string): <E, R>(ref: RefArray<A, E, R>) => RefSubject.Computed<R, E, Record<string, ReadonlyArray<A>>>;\n    <A, E, R>(ref: RefArray<A, E, R>, f: (a: A) => string): RefSubject.Computed<R, E, Record<string, ReadonlyArray<A>>>;\n};"
    ],
    "typeParameters": [
      "A",
      "E",
      "R"
    ],
    "summary": "Group the values of a RefArray by a key.",
    "sections": {
      "Why": "Projects array state with group by for both current reads and future pushes, avoiding a second\nmutable cache of the derived value.",
      "Ownership and lifetime": "The group by view retains no independent state. An Effect read samples the source once; Fx\nobservation follows later pushes and its observing Scope owns subscription cleanup."
    },
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefArray.ts",
        "start": {
          "line": 324,
          "column": 14
        },
        "end": {
          "line": 334,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefArray.ts",
        "start": {
          "line": 325,
          "column": 3
        },
        "end": {
          "line": 327,
          "column": 100
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefArray.ts",
        "start": {
          "line": 328,
          "column": 3
        },
        "end": {
          "line": 331,
          "column": 66
        }
      }
    ],
    "since": "1.18.0",
    "category": "Derived queries"
  }
}
