Skip to content

Commit

Permalink
doc(README): removed no longer existing type Method (#289)
Browse files Browse the repository at this point in the history
* doc(README): removed no longer existing type Method

* refactor(./types/events): allow any string on Method
  • Loading branch information
Rossb0b authored Aug 30, 2024
1 parent 59f44ea commit e15f967
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,11 @@ export interface Scope {
persPhysiqueId?: number | null;
}

export type Method = "POST" | "PATCH" | "PUT" | "DELETE";

export interface Metadata {
agent: string;
origin?: {
endpoint: string;
method: Method;
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE" | "HEAD" | "OPTIONS" | (string & {});
requestId?: string;
};
createdAt: number;
Expand Down
3 changes: 2 additions & 1 deletion src/types/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ export interface Metadata {
agent: string;
origin?: {
endpoint: string;
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE" | "HEAD" | "OPTIONS";
// eslint-disable-next-line @typescript-eslint/ban-types
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE" | "HEAD" | "OPTIONS" | (string & {});
requestId?: string;
};
createdAt: number;
Expand Down

0 comments on commit e15f967

Please sign in to comment.