From 70f5661f7718e0a55a5ac3320ffb057be74ef6c5 Mon Sep 17 00:00:00 2001 From: Alvis HT Tang Date: Wed, 18 Oct 2023 02:12:58 +0100 Subject: [PATCH] feat: provide symbols to be used for accessing private properties --- source/symbols.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 source/symbols.ts diff --git a/source/symbols.ts b/source/symbols.ts new file mode 100644 index 0000000..f6c7888 --- /dev/null +++ b/source/symbols.ts @@ -0,0 +1,18 @@ +/* + * *** MIT LICENSE *** + * ------------------------------------------------------------------------- + * This code may be modified and distributed under the MIT license. + * See the LICENSE file for details. + * ------------------------------------------------------------------------- + * + * @summary Symbols used in the prototype + * @author Alvis HT Tang + * @license MIT + * @copyright Copyright (c) 2020 - All Rights Reserved. + * ------------------------------------------------------------------------- + */ + +export const $namespace = Symbol('namespace'); +export const $tags = Symbol('tags'); +export const $cause = Symbol('cause'); +export const $meta = Symbol('meta');