prompt-anything
Advanced tools
Comparing version 2.0.1 to 3.0.0
import { VisualInterface } from "./Visual"; | ||
import { MessageInterface } from "./Message"; | ||
export interface ChannelInterface<MessageType extends MessageInterface> { | ||
send: (format: VisualInterface) => Promise<MessageType>; | ||
send: (format: VisualInterface) => Promise<MessageType | MessageType[]>; | ||
} |
@@ -78,3 +78,3 @@ /// <reference types="node" /> | ||
*/ | ||
sendVisual(visual: VisualInterface | VisualInterface[], channel: ChannelInterface<MessageType>): Promise<MessageType | MessageType[]>; | ||
sendVisual(visual: VisualInterface | VisualInterface[], channel: ChannelInterface<MessageType>): Promise<(MessageType | MessageType[])[] | MessageType>; | ||
/** | ||
@@ -86,3 +86,3 @@ * Send the visual generated by the visual generator | ||
*/ | ||
sendUserVisual(channel: ChannelInterface<MessageType>, data: DataType): Promise<MessageType | MessageType[]>; | ||
sendUserVisual(channel: ChannelInterface<MessageType>, data: DataType): Promise<(MessageType | MessageType[])[] | MessageType>; | ||
/** | ||
@@ -89,0 +89,0 @@ * Runs the Prompt function for every message collected. |
{ | ||
"name": "prompt-anything", | ||
"version": "2.0.1", | ||
"version": "3.0.0", | ||
"description": "Framework to build a a tree of modular and interactable prompts for anything", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -40,3 +40,3 @@ | ||
interface ChannelInterface<MessageType extends MessageInterface> { | ||
send: (visual: VisualInterface) => Promise<MessageType>; | ||
send: (visual: VisualInterface) => Promise<MessageType|MessageType[]>; | ||
} | ||
@@ -43,0 +43,0 @@ ``` |
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
77203