Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

PropRef.md

90 lines1.2 KB

1---
2id: PropRef
3title: PropRef
4---
5​
6# Class: PropRef\<T\>
7​
8Defined in: [packages/db/src/query/ir.ts:92](https://github.com/TanStack/db/blob/main/packages/db/src/query/ir.ts#L92)
9​
10## Extends
11​
12- `BaseExpression`\<`T`\>
13​
14## Type Parameters
15​
16### T
17​
18`T` = `any`
19​
20## Constructors
21​
22### Constructor
23​
24```ts
25new PropRef<T>(path): PropRef<T>;
26```
27​
28Defined in: [packages/db/src/query/ir.ts:94](https://github.com/TanStack/db/blob/main/packages/db/src/query/ir.ts#L94)
29​
30#### Parameters
31​
32##### path
33​
34`string`[]
35​
36#### Returns
37​
38`PropRef`\<`T`\>
39​
40#### Overrides
41​
42```ts
43BaseExpression<T>.constructor
44```
45​
46## Properties
47​
48### \_\_returnType
49​
50```ts
51readonly __returnType: T;
52```
53​
54Defined in: [packages/db/src/query/ir.ts:69](https://github.com/TanStack/db/blob/main/packages/db/src/query/ir.ts#L69)
55​
56**`Internal`**
57​
58- Type brand for TypeScript inference
59​
60#### Inherited from
61​
62```ts
63BaseExpression.__returnType
64```
65​
66***
67​
68### path
69​
70```ts
71path: string[];
72```
73​
74Defined in: [packages/db/src/query/ir.ts:95](https://github.com/TanStack/db/blob/main/packages/db/src/query/ir.ts#L95)
75​
76***
77​
78### type
79​
80```ts
81type: "ref";
82```
83​
84Defined in: [packages/db/src/query/ir.ts:93](https://github.com/TanStack/db/blob/main/packages/db/src/query/ir.ts#L93)
85​
86#### Overrides
87​
88```ts
89BaseExpression.type
90```