ssb-typescript
Advanced tools
Comparing version 1.2.1 to 1.3.0
{ | ||
"name": "ssb-typescript", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": "TypeScript type definitions for Secure Scuttlebutt", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -6,2 +6,3 @@ import { Msg, PostContent, AboutContent, ContactContent, VoteContent } from './readme'; | ||
export declare function isRootPostMsg(msg: Msg<any>): msg is Msg<PostContent>; | ||
export declare function isReplyPostMsg(msg: Msg<any>): msg is Msg<PostContent>; | ||
export declare function isAboutMsg(msg: Msg<any>): msg is Msg<AboutContent>; | ||
@@ -8,0 +9,0 @@ export declare function isContactMsg(msg: Msg<any>): msg is Msg<ContactContent>; |
@@ -19,2 +19,6 @@ "use strict"; | ||
exports.isRootPostMsg = isRootPostMsg; | ||
function isReplyPostMsg(msg) { | ||
return isPostMsg(msg) && !!msg.value.content.root; | ||
} | ||
exports.isReplyPostMsg = isReplyPostMsg; | ||
function isAboutMsg(msg) { | ||
@@ -21,0 +25,0 @@ return hasContent(msg) && msg.value.content.type === 'about'; |
@@ -25,2 +25,6 @@ import { | ||
export function isReplyPostMsg(msg: Msg<any>): msg is Msg<PostContent> { | ||
return isPostMsg(msg) && !!msg.value.content.root; | ||
} | ||
export function isAboutMsg(msg: Msg<any>): msg is Msg<AboutContent> { | ||
@@ -27,0 +31,0 @@ return hasContent(msg) && msg.value.content.type === 'about'; |
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
11727
351