File tree 3 files changed +15
-0
lines changed
packages/ui-extensions/src/surfaces/point-of-sale
3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -100,3 +100,8 @@ export type {
100
100
export type { CountryCode } from './api/types/country-code' ;
101
101
102
102
export type { Session } from './api/types/session' ;
103
+
104
+ export type {
105
+ StorageApi ,
106
+ StorageApiContent ,
107
+ } from './api/storage-api/storage-api' ;
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import type {LocaleApi} from '../locale-api/locale-api';
4
4
import type { SessionApi } from '../session-api/session-api' ;
5
5
import type { ToastApi } from '../toast-api/toast-api' ;
6
6
import type { ProductSearchApi } from '../product-search-api/product-search-api' ;
7
+ import { StorageApi } from '../storage-api/storage-api' ;
7
8
8
9
export type StandardApi < T > = { [ key : string ] : any } & {
9
10
extensionPoint : T ;
@@ -12,4 +13,5 @@ export type StandardApi<T> = {[key: string]: any} & {
12
13
SessionApi &
13
14
ProductSearchApi &
14
15
DeviceApi &
16
+ StorageApi &
15
17
ConnectivityApi ;
Original file line number Diff line number Diff line change
1
+ export interface StorageApi {
2
+ storage : StorageApiContent ;
3
+ }
4
+
5
+ export interface StorageApiContent {
6
+ get ( key : string ) : Promise < string | undefined > ;
7
+ set ( key : string , value : string ) : Promise < void > ;
8
+ }
You can’t perform that action at this time.
0 commit comments