From bbf2807cfab27c5214c5f1d9a35c1bdb5f34e470 Mon Sep 17 00:00:00 2001 From: garrettmills Date: Mon, 14 Nov 2022 21:41:30 -0600 Subject: [PATCH] Add `options` to HTTPMethod type --- package.json | 2 +- src/http/lifecycle/Request.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 892fa6f..fee47dd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@extollo/lib", - "version": "0.14.8", + "version": "0.14.9", "description": "The framework library that lifts up your code.", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/src/http/lifecycle/Request.ts b/src/http/lifecycle/Request.ts index 209815e..ac440f4 100644 --- a/src/http/lifecycle/Request.ts +++ b/src/http/lifecycle/Request.ts @@ -13,7 +13,7 @@ import {ActivatedRoute} from '../routing/ActivatedRoute' * Enumeration of different HTTP verbs. * @todo add others? */ -export type HTTPMethod = 'post' | 'get' | 'patch' | 'put' | 'delete' | 'unknown' +export type HTTPMethod = 'post' | 'get' | 'patch' | 'put' | 'delete' | 'options' | 'unknown' /** * Returns true if the given item is a valid HTTP verb.