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

ReadonlyStore.md

122 lines1.6 KB

Defined in: node_modules/.pnpm/@tanstack+store@0.11.1/node_modules/@tanstack/store/dist/store.d.ts:22

Type Parameters

T

T

Implements

  • Omit<Store<T>, "setState" | "actions">

Constructors

Constructor

new ReadonlyStore<T>(getValue): ReadonlyStore<T>;

Defined in: node_modules/.pnpm/@tanstack+store@0.11.1/node_modules/@tanstack/store/dist/store.d.ts:24

Parameters

getValue

(prev?) => T

Returns

ReadonlyStore<T>

Constructor

new ReadonlyStore<T>(initialValue): ReadonlyStore<T>;

Defined in: node_modules/.pnpm/@tanstack+store@0.11.1/node_modules/@tanstack/store/dist/store.d.ts:25

Parameters

initialValue

T

Returns

ReadonlyStore<T>

Accessors

state

Get Signature

get state(): T;

Defined in: node_modules/.pnpm/@tanstack+store@0.11.1/node_modules/@tanstack/store/dist/store.d.ts:26

Returns

T

Implementation of

Omit.state

Methods

get()

get(): T;

Defined in: node_modules/.pnpm/@tanstack+store@0.11.1/node_modules/@tanstack/store/dist/store.d.ts:27

Returns

T

Implementation of

Omit.get

subscribe()

subscribe(observerOrFn): Subscription;

Defined in: node_modules/.pnpm/@tanstack+store@0.11.1/node_modules/@tanstack/store/dist/store.d.ts:28

Parameters

observerOrFn

Observer<T> | ((value) => void)

Returns

Subscription

Implementation of

Omit.subscribe