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