Skip to content

TypeScript API / laikacms/storage / StorageSerializer

Interface: StorageSerializer<F> ​

Type Parameters ​

Type Parameter
F extends StorageFormat

Properties ​

format ​

ts
format: F;

Methods ​

deserializeDocumentFileContents() ​

ts
deserializeDocumentFileContents(content, schema): Promise<{
[key: string]: any;
}>;

Parameters ​

ParameterType
contentstring
schemaJSONSchema7

Returns ​

Promise<{ [key: string]: any; }>


serializeDocumentFileContents() ​

ts
serializeDocumentFileContents(content, schema): Promise<string>;

Parameters ​

ParameterType
content{ [key: string]: any; }
schemaJSONSchema7

Returns ​

Promise<string>

Released under the MIT License.