Skip to content

Commit

Permalink
refactor(agents): Move defaultAgentMeta export to impl/index and add …
Browse files Browse the repository at this point in the history
…tsdocs
  • Loading branch information
jcowman2 committed Aug 30, 2019
1 parent dd43e60 commit beae458
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/agents/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
*/

import { AgentMeta } from "./agent-meta";
import { buildInactiveAgentProxy } from "./impl";
import { defaultAgentMeta } from "./impl/agent-meta-transformers";
import { buildInactiveAgentProxy, defaultAgentMeta } from "./impl";

/** Determines whether an object is an `Agent`. */
export const isAgent = (o: any): o is Agent =>
Expand All @@ -27,6 +26,7 @@ export const isAgent = (o: any): o is Agent =>
* a `RegalError` will be thrown.
*/
export class Agent {
/** The agent's metadata, such as its agent id and prototype id. */
public meta: AgentMeta;

/**
Expand Down
1 change: 1 addition & 0 deletions src/agents/impl/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ export {
export {
StaticPrototypeRegistry
} from "./prototype/static-prototype-registry-impl";
export { defaultAgentMeta } from "./agent-meta-transformers";

0 comments on commit beae458

Please sign in to comment.