Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nickfrosty committed Aug 1, 2024
1 parent c947953 commit ba3c360
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
13 changes: 4 additions & 9 deletions packages/actions-spec/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,9 @@ export type ActionType = "action" | "completed";

export type ActionGetResponse = Action<"action">;

/**
* A single Solana Action
*/
export interface Action<T extends ActionType = "action"> {
/** @default `action` */
type?: T;
/** type of Action to present to the user */
type: T;
/** image url that represents the source of the action request */
icon: string;
/** describes the source of the action request */
Expand Down Expand Up @@ -228,7 +225,7 @@ export interface Action<T extends ActionType = "action"> {

```ts filename="ActionError"
export interface ActionError {
/** non-fatal error message to be displayed to the user */
/** simple error message to be displayed to the user */
message: string;
}
```
Expand Down Expand Up @@ -560,9 +557,7 @@ To chain multiple actions together, in any `ActionPostResponse` include a
```ts filename="NextActionLink"
export type NextActionLink = PostNextActionLink | InlineNextActionLink;

/**
* @see {NextActionPostRequest}
*/
/** @see {NextActionPostRequest} */
export interface PostNextActionLink {
/** Indicates the type of the link. */
type: "post";
Expand Down
3 changes: 1 addition & 2 deletions packages/actions-spec/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export interface ActionGetResponse extends Omit<Action, "type"> {
* A single Solana Action
*/
export interface Action<T extends ActionType = "action"> {
/** @default `action` */
/** type of Action to present to the user */
type: T;
/** image url that represents the source of the action request */
Expand Down Expand Up @@ -253,6 +252,6 @@ export interface NextActionPostRequest extends ActionPostRequest {
* Error message that can be returned from an Actions API
*/
export interface ActionError {
/** */
/** simple error message to be displayed to the user */
message: string;
}

0 comments on commit ba3c360

Please sign in to comment.