create-leo-app 0.9.13 → 0.9.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/dist/index.mjs +1 -1
  2. package/package.json +1 -1
  3. package/template-build-and-execute-authorization-ts/package.json +1 -1
  4. package/template-extension/package.json +1 -1
  5. package/template-nextjs-ts/next-env.d.ts +1 -1
  6. package/template-nextjs-ts/node_modules/@types/node/README.md +2 -2
  7. package/template-nextjs-ts/node_modules/@types/node/assert/strict.d.ts +105 -2
  8. package/template-nextjs-ts/node_modules/@types/node/assert.d.ts +119 -95
  9. package/template-nextjs-ts/node_modules/@types/node/buffer.buffer.d.ts +9 -0
  10. package/template-nextjs-ts/node_modules/@types/node/buffer.d.ts +12 -6
  11. package/template-nextjs-ts/node_modules/@types/node/child_process.d.ts +89 -162
  12. package/template-nextjs-ts/node_modules/@types/node/cluster.d.ts +4 -5
  13. package/template-nextjs-ts/node_modules/@types/node/crypto.d.ts +203 -167
  14. package/template-nextjs-ts/node_modules/@types/node/dgram.d.ts +9 -8
  15. package/template-nextjs-ts/node_modules/@types/node/dns/promises.d.ts +11 -10
  16. package/template-nextjs-ts/node_modules/@types/node/dns.d.ts +24 -20
  17. package/template-nextjs-ts/node_modules/@types/node/events.d.ts +80 -34
  18. package/template-nextjs-ts/node_modules/@types/node/fs/promises.d.ts +78 -56
  19. package/template-nextjs-ts/node_modules/@types/node/fs.d.ts +153 -129
  20. package/template-nextjs-ts/node_modules/@types/node/globals.d.ts +151 -343
  21. package/template-nextjs-ts/node_modules/@types/node/globals.typedarray.d.ts +17 -0
  22. package/template-nextjs-ts/node_modules/@types/node/http.d.ts +82 -54
  23. package/template-nextjs-ts/node_modules/@types/node/http2.d.ts +45 -26
  24. package/template-nextjs-ts/node_modules/@types/node/https.d.ts +96 -62
  25. package/template-nextjs-ts/node_modules/@types/node/index.d.ts +7 -2
  26. package/template-nextjs-ts/node_modules/@types/node/inspector.d.ts +187 -3936
  27. package/template-nextjs-ts/node_modules/@types/node/inspector.generated.d.ts +4052 -0
  28. package/template-nextjs-ts/node_modules/@types/node/module.d.ts +24 -0
  29. package/template-nextjs-ts/node_modules/@types/node/net.d.ts +33 -11
  30. package/template-nextjs-ts/node_modules/@types/node/os.d.ts +14 -3
  31. package/template-nextjs-ts/node_modules/@types/node/package.json +3 -83
  32. package/template-nextjs-ts/node_modules/@types/node/path.d.ts +1 -1
  33. package/template-nextjs-ts/node_modules/@types/node/perf_hooks.d.ts +6 -8
  34. package/template-nextjs-ts/node_modules/@types/node/process.d.ts +34 -25
  35. package/template-nextjs-ts/node_modules/@types/node/readline/promises.d.ts +1 -2
  36. package/template-nextjs-ts/node_modules/@types/node/sqlite.d.ts +48 -7
  37. package/template-nextjs-ts/node_modules/@types/node/stream/consumers.d.ts +2 -2
  38. package/template-nextjs-ts/node_modules/@types/node/stream/web.d.ts +4 -0
  39. package/template-nextjs-ts/node_modules/@types/node/stream.d.ts +29 -33
  40. package/template-nextjs-ts/node_modules/@types/node/string_decoder.d.ts +2 -2
  41. package/template-nextjs-ts/node_modules/@types/node/test.d.ts +10 -23
  42. package/template-nextjs-ts/node_modules/@types/node/tls.d.ts +122 -66
  43. package/template-nextjs-ts/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +10 -2
  44. package/template-nextjs-ts/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +15 -0
  45. package/template-nextjs-ts/node_modules/@types/node/ts5.6/index.d.ts +7 -2
  46. package/template-nextjs-ts/node_modules/@types/node/url.d.ts +21 -9
  47. package/template-nextjs-ts/node_modules/@types/node/util.d.ts +18 -8
  48. package/template-nextjs-ts/node_modules/@types/node/v8.d.ts +33 -35
  49. package/template-nextjs-ts/node_modules/@types/node/vm.d.ts +21 -50
  50. package/template-nextjs-ts/node_modules/@types/node/wasi.d.ts +1 -1
  51. package/template-nextjs-ts/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
  52. package/template-nextjs-ts/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  53. package/template-nextjs-ts/node_modules/@types/node/{dom-events.d.ts → web-globals/events.d.ts} +49 -51
  54. package/template-nextjs-ts/node_modules/@types/node/web-globals/fetch.d.ts +46 -0
  55. package/template-nextjs-ts/node_modules/@types/node/web-globals/navigator.d.ts +22 -0
  56. package/template-nextjs-ts/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  57. package/template-nextjs-ts/node_modules/@types/node/worker_threads.d.ts +65 -50
  58. package/template-nextjs-ts/node_modules/@types/node/zlib.d.ts +39 -26
  59. package/template-nextjs-ts/package.json +2 -2
  60. package/template-nextjs-ts/src/app/page.tsx +1 -1
  61. package/template-node/package.json +2 -2
  62. package/template-node-ts/package.json +2 -2
  63. package/template-offline-public-transaction-ts/package.json +1 -1
  64. package/template-private-transaction-ts/package.json +1 -1
  65. package/template-react-leo/package.json +1 -1
  66. package/template-react-managed-worker/package.json +1 -1
  67. package/template-react-ts/node_modules/@types/node/README.md +2 -2
  68. package/template-react-ts/node_modules/@types/node/assert/strict.d.ts +105 -2
  69. package/template-react-ts/node_modules/@types/node/assert.d.ts +119 -95
  70. package/template-react-ts/node_modules/@types/node/buffer.buffer.d.ts +9 -0
  71. package/template-react-ts/node_modules/@types/node/buffer.d.ts +12 -6
  72. package/template-react-ts/node_modules/@types/node/child_process.d.ts +89 -162
  73. package/template-react-ts/node_modules/@types/node/cluster.d.ts +4 -5
  74. package/template-react-ts/node_modules/@types/node/crypto.d.ts +203 -167
  75. package/template-react-ts/node_modules/@types/node/dgram.d.ts +9 -8
  76. package/template-react-ts/node_modules/@types/node/dns/promises.d.ts +11 -10
  77. package/template-react-ts/node_modules/@types/node/dns.d.ts +24 -20
  78. package/template-react-ts/node_modules/@types/node/events.d.ts +80 -34
  79. package/template-react-ts/node_modules/@types/node/fs/promises.d.ts +78 -56
  80. package/template-react-ts/node_modules/@types/node/fs.d.ts +153 -129
  81. package/template-react-ts/node_modules/@types/node/globals.d.ts +151 -343
  82. package/template-react-ts/node_modules/@types/node/globals.typedarray.d.ts +17 -0
  83. package/template-react-ts/node_modules/@types/node/http.d.ts +82 -54
  84. package/template-react-ts/node_modules/@types/node/http2.d.ts +45 -26
  85. package/template-react-ts/node_modules/@types/node/https.d.ts +96 -62
  86. package/template-react-ts/node_modules/@types/node/index.d.ts +7 -2
  87. package/template-react-ts/node_modules/@types/node/inspector.d.ts +187 -3936
  88. package/template-react-ts/node_modules/@types/node/inspector.generated.d.ts +4052 -0
  89. package/template-react-ts/node_modules/@types/node/module.d.ts +24 -0
  90. package/template-react-ts/node_modules/@types/node/net.d.ts +33 -11
  91. package/template-react-ts/node_modules/@types/node/os.d.ts +14 -3
  92. package/template-react-ts/node_modules/@types/node/package.json +3 -83
  93. package/template-react-ts/node_modules/@types/node/path.d.ts +1 -1
  94. package/template-react-ts/node_modules/@types/node/perf_hooks.d.ts +6 -8
  95. package/template-react-ts/node_modules/@types/node/process.d.ts +34 -25
  96. package/template-react-ts/node_modules/@types/node/readline/promises.d.ts +1 -2
  97. package/template-react-ts/node_modules/@types/node/sqlite.d.ts +48 -7
  98. package/template-react-ts/node_modules/@types/node/stream/consumers.d.ts +2 -2
  99. package/template-react-ts/node_modules/@types/node/stream/web.d.ts +4 -0
  100. package/template-react-ts/node_modules/@types/node/stream.d.ts +29 -33
  101. package/template-react-ts/node_modules/@types/node/string_decoder.d.ts +2 -2
  102. package/template-react-ts/node_modules/@types/node/test.d.ts +10 -23
  103. package/template-react-ts/node_modules/@types/node/tls.d.ts +122 -66
  104. package/template-react-ts/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +10 -2
  105. package/template-react-ts/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +15 -0
  106. package/template-react-ts/node_modules/@types/node/ts5.6/index.d.ts +7 -2
  107. package/template-react-ts/node_modules/@types/node/url.d.ts +21 -9
  108. package/template-react-ts/node_modules/@types/node/util.d.ts +18 -8
  109. package/template-react-ts/node_modules/@types/node/v8.d.ts +33 -35
  110. package/template-react-ts/node_modules/@types/node/vm.d.ts +21 -50
  111. package/template-react-ts/node_modules/@types/node/wasi.d.ts +1 -1
  112. package/template-react-ts/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
  113. package/template-react-ts/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  114. package/template-react-ts/node_modules/@types/node/{dom-events.d.ts → web-globals/events.d.ts} +49 -51
  115. package/template-react-ts/node_modules/@types/node/web-globals/fetch.d.ts +46 -0
  116. package/template-react-ts/node_modules/@types/node/web-globals/navigator.d.ts +22 -0
  117. package/template-react-ts/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  118. package/template-react-ts/node_modules/@types/node/worker_threads.d.ts +65 -50
  119. package/template-react-ts/node_modules/@types/node/zlib.d.ts +39 -26
  120. package/template-react-ts/package.json +1 -1
  121. package/template-vanilla/package.json +1 -1
@@ -4,17 +4,128 @@
4
4
  * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/assert.js)
5
5
  */
6
6
  declare module "assert" {
7
+ import strict = require("assert/strict");
7
8
  /**
8
- * An alias of {@link ok}.
9
+ * An alias of {@link assert.ok}.
9
10
  * @since v0.5.9
10
11
  * @param value The input that is checked for being truthy.
11
12
  */
12
13
  function assert(value: unknown, message?: string | Error): asserts value;
14
+ const kOptions: unique symbol;
13
15
  namespace assert {
16
+ type AssertMethodNames =
17
+ | "deepEqual"
18
+ | "deepStrictEqual"
19
+ | "doesNotMatch"
20
+ | "doesNotReject"
21
+ | "doesNotThrow"
22
+ | "equal"
23
+ | "fail"
24
+ | "ifError"
25
+ | "match"
26
+ | "notDeepEqual"
27
+ | "notDeepStrictEqual"
28
+ | "notEqual"
29
+ | "notStrictEqual"
30
+ | "ok"
31
+ | "partialDeepStrictEqual"
32
+ | "rejects"
33
+ | "strictEqual"
34
+ | "throws";
35
+ interface AssertOptions {
36
+ /**
37
+ * If set to `'full'`, shows the full diff in assertion errors.
38
+ * @default 'simple'
39
+ */
40
+ diff?: "simple" | "full" | undefined;
41
+ /**
42
+ * If set to `true`, non-strict methods behave like their
43
+ * corresponding strict methods.
44
+ * @default true
45
+ */
46
+ strict?: boolean | undefined;
47
+ }
48
+ interface Assert extends Pick<typeof assert, AssertMethodNames> {
49
+ readonly [kOptions]: AssertOptions & { strict: false };
50
+ }
51
+ interface AssertStrict extends Pick<typeof strict, AssertMethodNames> {
52
+ readonly [kOptions]: AssertOptions & { strict: true };
53
+ }
54
+ /**
55
+ * The `Assert` class allows creating independent assertion instances with custom options.
56
+ * @since v22.19.0
57
+ */
58
+ var Assert: {
59
+ /**
60
+ * Creates a new assertion instance. The `diff` option controls the verbosity of diffs in assertion error messages.
61
+ *
62
+ * ```js
63
+ * const { Assert } = require('node:assert');
64
+ * const assertInstance = new Assert({ diff: 'full' });
65
+ * assertInstance.deepStrictEqual({ a: 1 }, { a: 2 });
66
+ * // Shows a full diff in the error message.
67
+ * ```
68
+ *
69
+ * **Important**: When destructuring assertion methods from an `Assert` instance,
70
+ * the methods lose their connection to the instance's configuration options (such as `diff` and `strict` settings).
71
+ * The destructured methods will fall back to default behavior instead.
72
+ *
73
+ * ```js
74
+ * const myAssert = new Assert({ diff: 'full' });
75
+ *
76
+ * // This works as expected - uses 'full' diff
77
+ * myAssert.strictEqual({ a: 1 }, { b: { c: 1 } });
78
+ *
79
+ * // This loses the 'full' diff setting - falls back to default 'simple' diff
80
+ * const { strictEqual } = myAssert;
81
+ * strictEqual({ a: 1 }, { b: { c: 1 } });
82
+ * ```
83
+ *
84
+ * When destructured, methods lose access to the instance's `this` context and revert to default assertion behavior
85
+ * (diff: 'simple', non-strict mode).
86
+ * To maintain custom options when using destructured methods, avoid
87
+ * destructuring and call methods directly on the instance.
88
+ * @since v22.19.0
89
+ */
90
+ new(
91
+ options?: AssertOptions & { strict?: true },
92
+ ): AssertStrict;
93
+ new(
94
+ options: AssertOptions,
95
+ ): Assert;
96
+ };
97
+ interface AssertionErrorOptions {
98
+ /**
99
+ * If provided, the error message is set to this value.
100
+ */
101
+ message?: string | undefined;
102
+ /**
103
+ * The `actual` property on the error instance.
104
+ */
105
+ actual?: unknown;
106
+ /**
107
+ * The `expected` property on the error instance.
108
+ */
109
+ expected?: unknown;
110
+ /**
111
+ * The `operator` property on the error instance.
112
+ */
113
+ operator?: string | undefined;
114
+ /**
115
+ * If provided, the generated stack trace omits frames before this function.
116
+ */
117
+ stackStartFn?: Function | undefined;
118
+ /**
119
+ * If set to `'full'`, shows the full diff in assertion errors.
120
+ * @default 'simple'
121
+ */
122
+ diff?: "simple" | "full" | undefined;
123
+ }
14
124
  /**
15
125
  * Indicates the failure of an assertion. All errors thrown by the `node:assert` module will be instances of the `AssertionError` class.
16
126
  */
17
127
  class AssertionError extends Error {
128
+ constructor(options: AssertionErrorOptions);
18
129
  /**
19
130
  * Set to the `actual` argument for methods such as {@link assert.strictEqual()}.
20
131
  */
@@ -23,10 +134,6 @@ declare module "assert" {
23
134
  * Set to the `expected` argument for methods such as {@link assert.strictEqual()}.
24
135
  */
25
136
  expected: unknown;
26
- /**
27
- * Set to the passed in operator value.
28
- */
29
- operator: string;
30
137
  /**
31
138
  * Indicates if the message was auto-generated (`true`) or not.
32
139
  */
@@ -35,19 +142,10 @@ declare module "assert" {
35
142
  * Value is always `ERR_ASSERTION` to show that the error is an assertion error.
36
143
  */
37
144
  code: "ERR_ASSERTION";
38
- constructor(options?: {
39
- /** If provided, the error message is set to this value. */
40
- message?: string | undefined;
41
- /** The `actual` property on the error instance. */
42
- actual?: unknown | undefined;
43
- /** The `expected` property on the error instance. */
44
- expected?: unknown | undefined;
45
- /** The `operator` property on the error instance. */
46
- operator?: string | undefined;
47
- /** If provided, the generated stack trace omits frames before this function. */
48
- // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
49
- stackStartFn?: Function | undefined;
50
- });
145
+ /**
146
+ * Set to the passed in operator value.
147
+ */
148
+ operator: string;
51
149
  }
52
150
  /**
53
151
  * This feature is deprecated and will be removed in a future version.
@@ -968,83 +1066,9 @@ declare module "assert" {
968
1066
  * @since v22.13.0
969
1067
  */
970
1068
  function partialDeepStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void;
971
- /**
972
- * In strict assertion mode, non-strict methods behave like their corresponding strict methods. For example,
973
- * {@link deepEqual} will behave like {@link deepStrictEqual}.
974
- *
975
- * In strict assertion mode, error messages for objects display a diff. In legacy assertion mode, error
976
- * messages for objects display the objects, often truncated.
977
- *
978
- * To use strict assertion mode:
979
- *
980
- * ```js
981
- * import { strict as assert } from 'node:assert';
982
- * import assert from 'node:assert/strict';
983
- * ```
984
- *
985
- * Example error diff:
986
- *
987
- * ```js
988
- * import { strict as assert } from 'node:assert';
989
- *
990
- * assert.deepEqual([[[1, 2, 3]], 4, 5], [[[1, 2, '3']], 4, 5]);
991
- * // AssertionError: Expected inputs to be strictly deep-equal:
992
- * // + actual - expected ... Lines skipped
993
- * //
994
- * // [
995
- * // [
996
- * // ...
997
- * // 2,
998
- * // + 3
999
- * // - '3'
1000
- * // ],
1001
- * // ...
1002
- * // 5
1003
- * // ]
1004
- * ```
1005
- *
1006
- * To deactivate the colors, use the `NO_COLOR` or `NODE_DISABLE_COLORS` environment variables. This will also
1007
- * deactivate the colors in the REPL. For more on color support in terminal environments, read the tty
1008
- * `getColorDepth()` documentation.
1009
- *
1010
- * @since v15.0.0, v13.9.0, v12.16.2, v9.9.0
1011
- */
1012
- namespace strict {
1013
- type AssertionError = assert.AssertionError;
1014
- type AssertPredicate = assert.AssertPredicate;
1015
- type CallTrackerCall = assert.CallTrackerCall;
1016
- type CallTrackerReportInformation = assert.CallTrackerReportInformation;
1017
- }
1018
- const strict:
1019
- & Omit<
1020
- typeof assert,
1021
- | "equal"
1022
- | "notEqual"
1023
- | "deepEqual"
1024
- | "notDeepEqual"
1025
- | "ok"
1026
- | "strictEqual"
1027
- | "deepStrictEqual"
1028
- | "ifError"
1029
- | "strict"
1030
- | "AssertionError"
1031
- >
1032
- & {
1033
- (value: unknown, message?: string | Error): asserts value;
1034
- equal: typeof strictEqual;
1035
- notEqual: typeof notStrictEqual;
1036
- deepEqual: typeof deepStrictEqual;
1037
- notDeepEqual: typeof notDeepStrictEqual;
1038
- // Mapped types and assertion functions are incompatible?
1039
- // TS2775: Assertions require every name in the call target
1040
- // to be declared with an explicit type annotation.
1041
- ok: typeof ok;
1042
- strictEqual: typeof strictEqual;
1043
- deepStrictEqual: typeof deepStrictEqual;
1044
- ifError: typeof ifError;
1045
- strict: typeof strict;
1046
- AssertionError: typeof AssertionError;
1047
- };
1069
+ }
1070
+ namespace assert {
1071
+ export { strict };
1048
1072
  }
1049
1073
  export = assert;
1050
1074
  }
@@ -451,7 +451,16 @@ declare module "buffer" {
451
451
  */
452
452
  subarray(start?: number, end?: number): Buffer<TArrayBuffer>;
453
453
  }
454
+ // TODO: remove globals in future version
455
+ /**
456
+ * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports
457
+ * TypeScript versions earlier than 5.7.
458
+ */
454
459
  type NonSharedBuffer = Buffer<ArrayBuffer>;
460
+ /**
461
+ * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports
462
+ * TypeScript versions earlier than 5.7.
463
+ */
455
464
  type AllowSharedBuffer = Buffer<ArrayBufferLike>;
456
465
  }
457
466
  /** @deprecated Use `Buffer.allocUnsafeSlow()` instead. */
@@ -59,7 +59,7 @@ declare module "buffer" {
59
59
  * @since v19.4.0, v18.14.0
60
60
  * @param input The input to validate.
61
61
  */
62
- export function isUtf8(input: Buffer | ArrayBuffer | NodeJS.TypedArray): boolean;
62
+ export function isUtf8(input: ArrayBuffer | NodeJS.TypedArray): boolean;
63
63
  /**
64
64
  * This function returns `true` if `input` contains only valid ASCII-encoded data,
65
65
  * including the case in which `input` is empty.
@@ -68,7 +68,7 @@ declare module "buffer" {
68
68
  * @since v19.6.0, v18.15.0
69
69
  * @param input The input to validate.
70
70
  */
71
- export function isAscii(input: Buffer | ArrayBuffer | NodeJS.TypedArray): boolean;
71
+ export function isAscii(input: ArrayBuffer | NodeJS.TypedArray): boolean;
72
72
  export let INSPECT_MAX_BYTES: number;
73
73
  export const kMaxLength: number;
74
74
  export const kStringMaxLength: number;
@@ -113,12 +113,15 @@ declare module "buffer" {
113
113
  * @param fromEnc The current encoding.
114
114
  * @param toEnc To target encoding.
115
115
  */
116
- export function transcode(source: Uint8Array, fromEnc: TranscodeEncoding, toEnc: TranscodeEncoding): Buffer;
116
+ export function transcode(
117
+ source: Uint8Array,
118
+ fromEnc: TranscodeEncoding,
119
+ toEnc: TranscodeEncoding,
120
+ ): NonSharedBuffer;
117
121
  /**
118
122
  * Resolves a `'blob:nodedata:...'` an associated `Blob` object registered using
119
123
  * a prior call to `URL.createObjectURL()`.
120
124
  * @since v16.7.0
121
- * @experimental
122
125
  * @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`.
123
126
  */
124
127
  export function resolveObjectURL(id: string): Blob | undefined;
@@ -140,7 +143,7 @@ declare module "buffer" {
140
143
  type?: string | undefined;
141
144
  }
142
145
  /**
143
- * A [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) encapsulates immutable, raw data that can be safely shared across
146
+ * A `Blob` encapsulates immutable, raw data that can be safely shared across
144
147
  * multiple worker threads.
145
148
  * @since v15.7.0, v14.18.0
146
149
  */
@@ -331,7 +334,7 @@ declare module "buffer" {
331
334
  * @return The number of bytes contained within `string`.
332
335
  */
333
336
  byteLength(
334
- string: string | Buffer | NodeJS.ArrayBufferView | ArrayBuffer | SharedArrayBuffer,
337
+ string: string | NodeJS.ArrayBufferView | ArrayBufferLike,
335
338
  encoding?: BufferEncoding,
336
339
  ): number;
337
340
  /**
@@ -1773,6 +1776,7 @@ declare module "buffer" {
1773
1776
  * @return The index of the first occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`.
1774
1777
  */
1775
1778
  indexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
1779
+ indexOf(value: string | number | Uint8Array, encoding: BufferEncoding): number;
1776
1780
  /**
1777
1781
  * Identical to `buf.indexOf()`, except the last occurrence of `value` is found
1778
1782
  * rather than the first occurrence.
@@ -1841,6 +1845,7 @@ declare module "buffer" {
1841
1845
  * @return The index of the last occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`.
1842
1846
  */
1843
1847
  lastIndexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
1848
+ lastIndexOf(value: string | number | Uint8Array, encoding: BufferEncoding): number;
1844
1849
  /**
1845
1850
  * Equivalent to `buf.indexOf() !== -1`.
1846
1851
  *
@@ -1871,6 +1876,7 @@ declare module "buffer" {
1871
1876
  * @return `true` if `value` was found in `buf`, `false` otherwise.
1872
1877
  */
1873
1878
  includes(value: string | number | Buffer, byteOffset?: number, encoding?: BufferEncoding): boolean;
1879
+ includes(value: string | number | Buffer, encoding: BufferEncoding): boolean;
1874
1880
  }
1875
1881
  var Buffer: BufferConstructor;
1876
1882
  /**