Skip to content

Commit

Permalink
fix(fjagejs): updating type information in fjagejs annotations
Browse files Browse the repository at this point in the history
notthetup committed Oct 17, 2024
1 parent e28a258 commit 2c196d9
Showing 3 changed files with 42 additions and 6 deletions.
16 changes: 14 additions & 2 deletions gateways/js/dist/esm/fjage.js
Original file line number Diff line number Diff line change
@@ -567,11 +567,23 @@ class AgentID {
}
}

// protected String msgID = UUID.randomUUID().toString();
// protected Performative perf;
// protected AgentID recipient;
// protected AgentID sender = null;
// protected String inReplyTo = null;
// protected Long sentAt = null;

/**
* Base class for messages transmitted by one agent to another. Creates an empty message.
* @class
* @param {Message} [inReplyTo] - message to which this response corresponds to
* @param {string} [msgID] - unique identifier for the message
* @param {Performative} [perf=Performative.INFORM] - performative
* @param {AgentID} [recipient] - recipient of the message
* @param {AgentID} [sender] - sender of the message
* @param {string} [inReplyTo] - message to which this response corresponds to
* @param {Message} [inReplyTo] - message to which this response corresponds to
* @param {number} [sentAt] - time at which the message was sent
*/
class Message {

@@ -1085,7 +1097,7 @@ class Gateway {
* Returns an object representing the named topic.
*
* @param {string|AgentID} topic - name of the topic or AgentID
* @param {string} topic2 - name of the topic if the topic param is an AgentID
* @param {string} [topic2] - name of the topic if the topic param is an AgentID
* @returns {AgentID} - object representing the topic
*/
topic(topic, topic2) {
16 changes: 14 additions & 2 deletions gateways/js/dist/fjage.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 14 additions & 2 deletions gateways/js/src/fjage.js
Original file line number Diff line number Diff line change
@@ -198,11 +198,23 @@ export class AgentID {
}
}

// protected String msgID = UUID.randomUUID().toString();
// protected Performative perf;
// protected AgentID recipient;
// protected AgentID sender = null;
// protected String inReplyTo = null;
// protected Long sentAt = null;

/**
* Base class for messages transmitted by one agent to another. Creates an empty message.
* @class
* @param {Message} [inReplyTo] - message to which this response corresponds to
* @param {string} [msgID] - unique identifier for the message
* @param {Performative} [perf=Performative.INFORM] - performative
* @param {AgentID} [recipient] - recipient of the message
* @param {AgentID} [sender] - sender of the message
* @param {string} [inReplyTo] - message to which this response corresponds to
* @param {Message} [inReplyTo] - message to which this response corresponds to
* @param {number} [sentAt] - time at which the message was sent
*/
export class Message {

@@ -716,7 +728,7 @@ export class Gateway {
* Returns an object representing the named topic.
*
* @param {string|AgentID} topic - name of the topic or AgentID
* @param {string} topic2 - name of the topic if the topic param is an AgentID
* @param {string} [topic2] - name of the topic if the topic param is an AgentID
* @returns {AgentID} - object representing the topic
*/
topic(topic, topic2) {

0 comments on commit 2c196d9

Please sign in to comment.