ssb-typescript
Advanced tools
Comparing version 2.7.1 to 2.8.0
{ | ||
"name": "ssb-typescript", | ||
"version": "2.7.1", | ||
"version": "2.8.0", | ||
"description": "TypeScript type definitions for Secure Scuttlebutt", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -1,2 +0,2 @@ | ||
import { Msg, PostContent, BlogContent, AboutContent, ContactContent, VoteContent, UnboxedMsg, MsgId, MsgInThread, AttendeeContent } from './readme'; | ||
import { Msg, PostContent, BlogContent, AboutContent, ContactContent, VoteContent, UnboxedMsg, MsgId, MsgInThread, AttendeeContent, GatheringContent } from './readme'; | ||
export declare function isMsg(msg: any): msg is Msg<any>; | ||
@@ -12,2 +12,3 @@ export declare function isRootMsg(msg: Msg<any>): boolean; | ||
export declare function isVoteMsg(msg: Msg<any>): msg is Msg<VoteContent>; | ||
export declare function isGatheringMsg(msg: Msg<any>): msg is Msg<GatheringContent>; | ||
export declare function isAttendeeMsg(msg: Msg<any>): msg is Msg<AttendeeContent>; | ||
@@ -14,0 +15,0 @@ export declare function isPrivate(msg: Msg<any> | UnboxedMsg): boolean; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isBlogMsg = exports.isPublic = exports.isPrivate = exports.isAttendeeMsg = exports.isVoteMsg = exports.isContactMsg = exports.isAboutMsg = exports.isReplyPostMsg = exports.isRootPostMsg = exports.isPostMsg = exports.isIndirectReplyMsgToRoot = exports.isReplyMsgToRoot = exports.isRootMsg = exports.isMsg = void 0; | ||
exports.isBlogMsg = exports.isPublic = exports.isPrivate = exports.isAttendeeMsg = exports.isGatheringMsg = exports.isVoteMsg = exports.isContactMsg = exports.isAboutMsg = exports.isReplyPostMsg = exports.isRootPostMsg = exports.isPostMsg = exports.isIndirectReplyMsgToRoot = exports.isReplyMsgToRoot = exports.isRootMsg = exports.isMsg = void 0; | ||
function isMsg(msg) { | ||
@@ -54,2 +54,7 @@ return msg && msg.key && msg.value && typeof msg.value === 'object'; | ||
exports.isVoteMsg = isVoteMsg; | ||
function isGatheringMsg(msg) { | ||
var _a, _b; | ||
return ((_b = (_a = msg === null || msg === void 0 ? void 0 : msg.value) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.type) === 'gathering'; | ||
} | ||
exports.isGatheringMsg = isGatheringMsg; | ||
function isAttendeeMsg(msg) { | ||
@@ -56,0 +61,0 @@ var _a, _b; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20289
535