代码拉取完成,页面将自动刷新
declare module "orbit-db-store" {
import IPFS = require("ipfs");
import { Identity } from "orbit-db-identity-provider";
import { EventEmitter } from 'events';
import * as elliptic from "elliptic";
export default class Store {
/**
* The identity is used to sign the database entries.
*/
readonly identity: Identity;
address: { root: string, path: string };
/**
* Contains all entries of this Store
*/
all: any[];
type: string;
/**
* Returns an instance of `elliptic.ec.KeyPair`.
* The keypair is used to sign the database entries.
* The key can also be accessed from the OrbitDB instance: `orbitdb.key.getPublic('hex')`.
*/
key: elliptic.ec.KeyPair;
replicationStatus: IReplicationStatus;
events: EventEmitter;
/**
* Apparently not meant for outside usage
* @param ipfs
* @param identity
* @param address
* @param options
*/
protected constructor (ipfs: IPFS, identity: Identity, address: string, options: IStoreOptions);
close(): Promise<void>;
drop(): Promise<void>;
setIdentity(identity: Identity): void;
/**
* Load the locally persisted database state to memory.
* @param amount Amount of entries loaded into memory
* @returns a `Promise` that resolves once complete
*/
load(amount?: number): Promise<void>;
protected _addOperation(data: any, options: { onProgressCallback?: (entry: any) => any, pin?: boolean }): Promise<string>;
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。