PHP WebShell
Текущая директория: /opt/BitGoJS/node_modules/@aptos-labs/ts-sdk/dist/esm/utils
Просмотр файла: normalizeBundle.d.mts
import { Deserializer } from '../bcs/deserializer.mjs';
import { Serializable } from '../bcs/serializer.mjs';
import '../types/types.mjs';
import '../types/indexer.mjs';
import '../types/generated/operations.mjs';
import '../types/generated/types.mjs';
import './apiEndpoints.mjs';
import '../core/hex.mjs';
import '../core/common.mjs';
type DeserializableClass<T extends Serializable> = {
/**
* Deserializes a serialized object using the provided deserializer.
* This function allows you to reconstruct an object from its serialized form.
*
* @param deserializer - An instance of the Deserializer used to read the serialized data.
*/
deserialize(deserializer: Deserializer): T;
};
/**
* Normalizes an instance of a class by deserializing it from its byte representation.
* This function allows the `instanceof` operator to work correctly when the input objects originate from a different bundle.
*
* @param cls - The class of the object to normalize.
* @param value - The instance to normalize.
*/
declare function normalizeBundle<T extends Serializable>(cls: DeserializableClass<T>, value: T): T;
export { type DeserializableClass, normalizeBundle };
Выполнить команду
Для локальной разработки. Не используйте в интернете!