Skip to content
module@warp-drive/core/types/spec/document

Type Alias ResourceDataDocument<T> ​

ts
type ResourceDataDocument<T> = 
  | SingleResourceDataDocument<T>
| CollectionResourceDataDocument<T>;

Defined in: warp-drive-packages/core/src/types/spec/document.ts:94

A type useful for representing the raw {json:api} documents that the cache may use.

See also:

For the Reactive value returned by a request using the store, use ReactiveDataDocument instead.

Type Parameters ​

T ​

T = PersistedResourceKey

Released under the MIT License.