From fb7ba092ad261ad937eb4f1c38d1f7fd868e7ac2 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Mon, 19 Oct 2020 21:42:01 +0200 Subject: [PATCH] Types: mark String.bytesFrom() in as deprecated. --- src/ts/njs_core.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ts/njs_core.d.ts b/src/ts/njs_core.d.ts index db0b45c2..8783b3be 100644 --- a/src/ts/njs_core.d.ts +++ b/src/ts/njs_core.d.ts @@ -3,10 +3,14 @@ type BufferEncoding = "utf8" | "hex" | "base64" | "base64url"; interface StringConstructor { /** * Creates a byte string from an encoded string. + * + * @deprecated will be removed in the future. */ bytesFrom(bytes: string, encoding: Exclude): NjsByteString; /** * Creates a byte string from an array that contains octets. + * + * @deprecated will be removed in the future. */ bytesFrom(bytes: Array): NjsByteString; } -- 2.47.3