IFClite TypeScript API
Guides
Packages
Preparing search index...
@ifc-lite/extensions
ExtensionStorage
Interface ExtensionStorage
Storage abstraction.
interface
ExtensionStorage
{
clear
()
:
Promise
<
void
>
;
deleteBundle
(
id
:
string
,
version
:
string
)
:
Promise
<
void
>
;
deleteExtension
(
id
:
string
)
:
Promise
<
void
>
;
getBundle
(
id
:
string
,
version
:
string
,
)
:
Promise
<
Uint8Array
<
ArrayBufferLike
>
|
undefined
>
;
getExtension
(
id
:
string
)
:
Promise
<
InstalledExtensionRecord
|
undefined
>
;
listExtensions
()
:
Promise
<
InstalledExtensionRecord
[]
>
;
putBundle
(
id
:
string
,
version
:
string
,
bytes
:
Uint8Array
)
:
Promise
<
void
>
;
putExtension
(
record
:
InstalledExtensionRecord
)
:
Promise
<
void
>
;
}
Implemented by
InMemoryExtensionStorage
Index
Methods
clear
delete
Bundle
delete
Extension
get
Bundle
get
Extension
list
Extensions
put
Bundle
put
Extension
Methods
clear
clear
()
:
Promise
<
void
>
Best-effort transactional reset. Tests use this; production never should.
Returns
Promise
<
void
>
delete
Bundle
deleteBundle
(
id
:
string
,
version
:
string
)
:
Promise
<
void
>
Parameters
id
:
string
version
:
string
Returns
Promise
<
void
>
delete
Extension
deleteExtension
(
id
:
string
)
:
Promise
<
void
>
Parameters
id
:
string
Returns
Promise
<
void
>
get
Bundle
getBundle
(
id
:
string
,
version
:
string
,
)
:
Promise
<
Uint8Array
<
ArrayBufferLike
>
|
undefined
>
Parameters
id
:
string
version
:
string
Returns
Promise
<
Uint8Array
<
ArrayBufferLike
>
|
undefined
>
get
Extension
getExtension
(
id
:
string
)
:
Promise
<
InstalledExtensionRecord
|
undefined
>
Parameters
id
:
string
Returns
Promise
<
InstalledExtensionRecord
|
undefined
>
list
Extensions
listExtensions
()
:
Promise
<
InstalledExtensionRecord
[]
>
Returns
Promise
<
InstalledExtensionRecord
[]
>
put
Bundle
putBundle
(
id
:
string
,
version
:
string
,
bytes
:
Uint8Array
)
:
Promise
<
void
>
Parameters
id
:
string
version
:
string
bytes
:
Uint8Array
Returns
Promise
<
void
>
put
Extension
putExtension
(
record
:
InstalledExtensionRecord
)
:
Promise
<
void
>
Parameters
record
:
InstalledExtensionRecord
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Methods
clear
delete
Bundle
delete
Extension
get
Bundle
get
Extension
list
Extensions
put
Bundle
put
Extension
Guides
Packages
IFClite TypeScript API
Loading...
Storage abstraction.