Interface: LocalStorageSourceSettings<QO, TO, QB, TB, QRD, TRD>
Type parameters​
Name | Type |
---|---|
QO | extends RequestOptions = RecordSourceQueryOptions |
TO | extends RequestOptions = RequestOptions |
QB | RecordQueryBuilder |
TB | RecordTransformBuilder |
QRD | unknown |
TRD | extends RecordCacheUpdateDetails = RecordCacheUpdateDetails |
Hierarchy​
RecordSourceSettings
<QO
,TO
,QB
,TB
>↳
LocalStorageSourceSettings
Properties​
autoActivate​
• Optional
autoActivate: boolean
Inherited from​
RecordSourceSettings.autoActivate
Defined in​
data/dist/modules/source.d.ts:12
autoUpgrade​
• Optional
autoUpgrade: boolean
Automatically upgrade this source whenever its schema is upgraded.
Override the upgrade
method to provide an upgrade implementation.
default
true
Inherited from​
RecordSourceSettings.autoUpgrade
Defined in​
records/dist/modules/record-source.d.ts:43
autoValidate​
• Optional
autoValidate: boolean
Automatically validate the contents of all requests.
If true, builds a validatorFor
function if one has not been provided.
This will include standard validators as well as any custom validators
that may be provided.
default
true
Inherited from​
RecordSourceSettings.autoValidate
Defined in​
records/dist/modules/record-source.d.ts:35
bucket​
• Optional
bucket: Bucket
<unknown
>
Inherited from​
RecordSourceSettings.bucket
Defined in​
data/dist/modules/source.d.ts:9
cacheClass​
• Optional
cacheClass: LocalStorageCacheClass
<QO
, TO
, QB
, TB
, QRD
, TRD
>
Defined in​
local-storage/src/local-storage-source.ts:58
cacheSettings​
• Optional
cacheSettings: Partial
<LocalStorageCacheSettings
<QO
, TO
, QB
, TB
>>
Defined in​
local-storage/src/local-storage-source.ts:59
defaultQueryOptions​
• Optional
defaultQueryOptions: DefaultRequestOptions
<QO
>
Inherited from​
RecordSourceSettings.defaultQueryOptions
Defined in​
data/dist/modules/source.d.ts:15
defaultTransformOptions​
• Optional
defaultTransformOptions: DefaultRequestOptions
<TO
>
Inherited from​
RecordSourceSettings.defaultTransformOptions
Defined in​
data/dist/modules/source.d.ts:16
delimiter​
• Optional
delimiter: string
Defined in​
local-storage/src/local-storage-source.ts:56
keyMap​
• Optional
keyMap: RecordKeyMap
Inherited from​
RecordSourceSettings.keyMap
Defined in​
records/dist/modules/record-source.d.ts:15
name​
• Optional
name: string
Inherited from​
RecordSourceSettings.name
Defined in​
data/dist/modules/source.d.ts:8
namespace​
• Optional
namespace: string
Defined in​
local-storage/src/local-storage-source.ts:57
normalizer​
• Optional
normalizer: RecordNormalizer
<string
, RecordIdentity
, UninitializedRecord
>
Inherited from​
RecordSourceSettings.normalizer
Defined in​
records/dist/modules/record-source.d.ts:16
queryBuilder​
• Optional
queryBuilder: QB
Inherited from​
RecordSourceSettings.queryBuilder
Defined in​
data/dist/modules/source.d.ts:10
requestQueueSettings​
• Optional
requestQueueSettings: TaskQueueSettings
<string
, unknown
, unknown
>
Inherited from​
RecordSourceSettings.requestQueueSettings
Defined in​
data/dist/modules/source.d.ts:13
schema​
• schema: RecordSchema
Inherited from​
RecordSourceSettings.schema
Defined in​
records/dist/modules/record-source.d.ts:14
syncQueueSettings​
• Optional
syncQueueSettings: TaskQueueSettings
<string
, unknown
, unknown
>
Inherited from​
RecordSourceSettings.syncQueueSettings
Defined in​
data/dist/modules/source.d.ts:14
transformBuilder​
• Optional
transformBuilder: TB
Inherited from​
RecordSourceSettings.transformBuilder
Defined in​
data/dist/modules/source.d.ts:11
validatorFor​
• Optional
validatorFor: ValidatorForFn
<StandardValidator
| StandardRecordValidator
>
A completely custom set of validators.
Inherited from​
RecordSourceSettings.validatorFor
Defined in​
records/dist/modules/record-source.d.ts:20
validators​
• Optional
validators: Dict
<StandardValidator
| StandardRecordValidator
>
Custom validators to override, and be merged with, the standard ones which
will be built as long as autoValidate !== false
.
Inherited from​
RecordSourceSettings.validators
Defined in​
records/dist/modules/record-source.d.ts:25