UNPKG

@oap75/types

Version:

JavaScript type definitions for Subsocial blockchain.

11 lines (10 loc) 547 B
import { AccountId } from '@polkadot/types/interfaces'; import BN from 'bn.js'; import { SpaceId, PostId, Space, Post, ReactionId } from '@subsocial/definitions/interfaces'; import { SocialAccountWithId } from './dto'; export declare type SubstrateId = SpaceId | PostId | BN; export declare type CommonStruct = Space | Post | SocialAccountWithId; export declare type AnyAccountId = AccountId | string; export declare type AnySpaceId = SpaceId | BN; export declare type AnyPostId = PostId | BN; export declare type AnyReactionId = ReactionId | BN;