Skip to content

Commit a2c157e

Browse files
committed
fix some typing and add some const
1 parent ef4ef52 commit a2c157e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/llhttp/constants.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,13 +268,13 @@ export const METHODS_NON_STANDARD = {
268268

269269
/* DRAFT https://www.ietf.org/archive/id/draft-ietf-httpbis-safe-method-w-body-02.html */
270270
QUERY: 46,
271-
}
271+
} as const;
272272

273273
export const METHODS_ICECAST = {
274274
SOURCE: 33,
275-
}
275+
} as const;
276276

277-
export const METHODS_AIRPLAY: Pick<typeof METHODS_BASIC_HTTP, "GET" | "POST"> = {
277+
export const METHODS_AIRPLAY: Simplify<Pick<typeof METHODS_BASIC_HTTP, "GET" | "POST">> = {
278278
GET: 1,
279279
POST: 3,
280280
} as const;

0 commit comments

Comments
 (0)