UNPKG
@toolpad/core
Version:
latest (0.15.0)
0.15.0
0.14.0
0.13.0
0.12.1
0.12.0
0.11.0
0.10.0
0.9.0
0.8.1
0.8.0
0.7.0
0.6.0
0.5.2
0.5.1
0.5.0
0.4.0
0.3.2
0.3.1
0.3.0
0.2.0
0.1.55
0.1.54
0.1.53
Dashboard framework powered by Material UI.
github.com/mui/toolpad
mui/toolpad
@toolpad/core
/
Crud
/
useCachedDataSource.d.ts
4 lines
•
263 B
TypeScript
View Raw
1
2
3
4
import
{
DataSourceCache
}
from
"./cache.js"
;
import
type
{
DataModel
,
DataSource
}
from
'./types'
;
declare
function
useCachedDataSource<D
extends
DataModel
>(
dataSource
:
DataSource
<D>,
cache
:
DataSourceCache
|
null
):
DataSource
<D>;
export
{ useCachedDataSource };