Skip to content

Commit

Permalink
fix: TAgent definition
Browse files Browse the repository at this point in the history
  • Loading branch information
simonas-notcat authored and mirceanis committed Sep 7, 2020
1 parent 06c9304 commit ce1af94
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/api/daf-core.tagent.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Utility type for constructing agent type that has a list of available methods
```typescript
export declare type TAgent<T extends IPluginMethodMap> = {
[P in keyof T]: RemoveContext<T[P]>;
} & Pick<IAgentBase, 'availableMethods'>;
} & IAgent;
```

## Example
Expand Down
2 changes: 1 addition & 1 deletion packages/daf-core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ export interface RemoveContext<T extends IPluginMethod> {
export type TAgent<T extends IPluginMethodMap> = {
[P in keyof T]: RemoveContext<T[P]>
} &
Pick<IAgentBase, 'availableMethods'>
IAgent

/**
* Standard plugin method context interface
Expand Down
2 changes: 1 addition & 1 deletion report/daf-core.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ export interface ResolveDidArgs {
// @public
export type TAgent<T extends IPluginMethodMap> = {
[P in keyof T]: RemoveContext<T[P]>;
} & Pick<IAgentBase, 'availableMethods'>;
} & IAgent;

// @public
export type TKeyType = 'Ed25519' | 'Secp256k1';
Expand Down

0 comments on commit ce1af94

Please sign in to comment.