From 2540e1836f26ce92b07445b5d591f1edd439cf95 Mon Sep 17 00:00:00 2001 From: Gabriel Pinto Date: Thu, 4 Jul 2024 13:51:33 +0200 Subject: [PATCH] docs: Update code to status for HttpResponse --- dts/lib.fleek.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dts/lib.fleek.d.ts b/dts/lib.fleek.d.ts index 529df8e..3197354 100644 --- a/dts/lib.fleek.d.ts +++ b/dts/lib.fleek.d.ts @@ -84,13 +84,13 @@ declare namespace Fleek { /** HTTP Response object. When returned from a function that's requested over http, it will be used to * modify the http response. Otherwise, for non-http requests, the raw json object will be sent. - * @property {Number} code - Status code to use. Must be an unsigned integer that fits inside a u16. + * @property {Number} status - Status code to use. Must be an unsigned integer that fits inside a u16. * @property {Headers} headers - Array or map of header key values * @property {any} body - Body to send to client * @category Fleek Node API */ type HttpResponse = { - code: number; + status: number; headers: HttpResponseHeaders; body: any; };