Skip to content

Commit 9bc8264

Browse files
committed
doc: deprecate latin1(to|from)String in favor of isomorphic
Refs: #55
1 parent 5365362 commit 9bc8264

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

single-byte.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ export function createSinglebyteEncoder(
111111
* Prefer using `isomorphicDecode()` from `@exodus/bytes/encoding.js` or `@exodus/bytes/encoding-lite.js`,
112112
* which is identical to this but allows more input types.
113113
*
114+
* @deprecated Use `import { isomorphicDecode } from '@exodus/bytes/encoding-lite.js'`
114115
* @param arr - The bytes to decode
115116
* @returns The decoded string
116117
*/
@@ -128,6 +129,7 @@ export function latin1toString(arr: Uint8Array): string;
128129
*
129130
* Prefer using `isomorphicEncode()` from `@exodus/bytes/encoding.js` or `@exodus/bytes/encoding-lite.js`.
130131
*
132+
* @deprecated Use `import { isomorphicEncode } from '@exodus/bytes/encoding-lite.js'`
131133
* @param string - The string to encode
132134
* @returns The encoded bytes
133135
*/

0 commit comments

Comments
 (0)