@celo/identity › "offchain/storage-writers" › LocalStorageWriter
Class: LocalStorageWriter
Hierarchy
↳ LocalStorageWriter
Index
Constructors
Properties
Methods
Constructors
constructor
+ new LocalStorageWriter(root
: string): LocalStorageWriter
Defined in packages/sdk/identity/src/offchain/storage-writers.ts:10
Parameters:
Name | Type |
---|---|
root |
string |
Returns: LocalStorageWriter
Properties
Readonly
root
• root: string
Defined in packages/sdk/identity/src/offchain/storage-writers.ts:11
Methods
write
▸ write(data
: Buffer, dataPath
: string): Promise‹void›
Overrides StorageWriter.write
Defined in packages/sdk/identity/src/offchain/storage-writers.ts:14
Parameters:
Name | Type |
---|---|
data |
Buffer |
dataPath |
string |
Returns: Promise‹void›