From c1ba524baac65fd736f1ad2cb666cb23d66d55ef Mon Sep 17 00:00:00 2001 From: Nick K Date: Wed, 21 Aug 2024 17:18:12 +0300 Subject: [PATCH] Add missing deprecation annotation --- .changeset/angry-needles-return.md | 5 +++++ src/objectToFormData.ts | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .changeset/angry-needles-return.md diff --git a/.changeset/angry-needles-return.md b/.changeset/angry-needles-return.md new file mode 100644 index 0000000..1a2a4a8 --- /dev/null +++ b/.changeset/angry-needles-return.md @@ -0,0 +1,5 @@ +--- +"@octetstream/object-to-form-data": patch +--- + +Add missing deprecation annotation diff --git a/src/objectToFormData.ts b/src/objectToFormData.ts index 46797a1..9f5aeea 100644 --- a/src/objectToFormData.ts +++ b/src/objectToFormData.ts @@ -121,6 +121,8 @@ export interface ObjectToFormData { * * @param input - An object to transform * @param strict - Indicates whether or not to omit every `false` values. Applied enabled. Does not affect boolean array values. + * + * @deprecated Use `objectToFormData` with options instead */ (input: Input, strict?: boolean): FormData