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

BaseAtom.md

53 lines895 Bytes

1---
2id: BaseAtom
3title: BaseAtom
4---
5​
6Defined in: [types.ts:33](https://github.com/TanStack/store/blob/main/packages/store/src/types.ts#L33)
7​
8## Extends
9​
10- [`Subscribable`](Subscribable.md)\<`T`\>.[`Readable`](Readable.md)\<`T`\>
11​
12## Extended by
13​
14- [`Atom`](Atom.md)
15- [`ReadonlyAtom`](ReadonlyAtom.md)
16​
17## Type Parameters
18​
19### T
20​
21`T`
22​
23## Properties
24​
25### get
26​
27```ts
28get: () => T;
29```
30​
31Defined in: [types.ts:30](https://github.com/TanStack/store/blob/main/packages/store/src/types.ts#L30)
32​
33#### Returns
34​
35`T`
36​
37#### Inherited from
38​
39[`Readable`](Readable.md).[`get`](Readable.md#get)
40​
41***
42​
43### subscribe
44​
45```ts
46subscribe: (observer) => Subscription & (next, error?, complete?) => Subscription;
47```
48​
49Defined in: [types.ts:21](https://github.com/TanStack/store/blob/main/packages/store/src/types.ts#L21)
50​
51#### Inherited from
52​
53[`Subscribable`](Subscribable.md).[`subscribe`](Subscribable.md#subscribe)