[njs] Types: mark String.bytesFrom() in as deprecated.
Dmitry Volyntsev
xeioex at nginx.com
Tue Oct 20 15:50:29 UTC 2020
details: https://hg.nginx.org/njs/rev/3d8f6b9548c0
branches:
changeset: 1546:3d8f6b9548c0
user: Jakub Jirutka <jakub at jirutka.cz>
date: Mon Oct 19 21:42:01 2020 +0200
description:
Types: mark String.bytesFrom() in as deprecated.
diffstat:
src/ts/njs_core.d.ts | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (18 lines):
diff -r 11da5c960017 -r 3d8f6b9548c0 src/ts/njs_core.d.ts
--- a/src/ts/njs_core.d.ts Fri Oct 09 17:28:58 2020 +0200
+++ b/src/ts/njs_core.d.ts Mon Oct 19 21:42:01 2020 +0200
@@ -3,10 +3,14 @@ type BufferEncoding = "utf8" | "hex" | "
interface StringConstructor {
/**
* Creates a byte string from an encoded string.
+ *
+ * @deprecated will be removed in the future.
*/
bytesFrom(bytes: string, encoding: Exclude<BufferEncoding, "utf8">): NjsByteString;
/**
* Creates a byte string from an array that contains octets.
+ *
+ * @deprecated will be removed in the future.
*/
bytesFrom(bytes: Array<number>): NjsByteString;
}
More information about the nginx-devel
mailing list