@farmart-tech/brave-client-sdk
Preparing search index...
FeatureReader
Class FeatureReader
Hierarchy (
View Summary
)
FeatureReader
FeatureFlagReader
WindowReader
Index
Constructors
constructor
Properties
db
prefetch
Promise
Methods
safe
Fetch
safe
Fetch
All
Constructors
constructor
new
FeatureReader
(
options
:
IFeatureReaderOptions
)
:
FeatureReader
Parameters
options
:
IFeatureReaderOptions
Returns
FeatureReader
Properties
Protected
Readonly
db
db
:
FirestoreDb
Protected
prefetch
Promise
prefetchPromise
:
Promise
<
unknown
>
|
null
Methods
Protected
safe
Fetch
safeFetch
<
T
,
D
>
(
collection
:
string
,
docName
:
string
,
factory
:
(
key
:
string
,
data
:
D
)
=>
T
,
cache
:
Map
<
string
,
D
>
,
)
:
Promise
<
T
|
null
>
Type Parameters
T
D
Parameters
collection
:
string
docName
:
string
factory
:
(
key
:
string
,
data
:
D
)
=>
T
cache
:
Map
<
string
,
D
>
Returns
Promise
<
T
|
null
>
Protected
safe
Fetch
All
safeFetchAll
<
T
,
D
>
(
collection
:
string
,
factory
:
(
key
:
string
,
data
:
D
)
=>
T
,
cache
:
Map
<
string
,
D
>
,
allLoaded
:
boolean
,
useCache
?:
boolean
,
)
:
Promise
<
Record
<
string
,
T
>
|
null
>
Type Parameters
T
D
Parameters
collection
:
string
factory
:
(
key
:
string
,
data
:
D
)
=>
T
cache
:
Map
<
string
,
D
>
allLoaded
:
boolean
Optional
useCache
:
boolean
Returns
Promise
<
Record
<
string
,
T
>
|
null
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
db
prefetch
Promise
Methods
safe
Fetch
safe
Fetch
All
@farmart-tech/brave-client-sdk
Loading...