We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d72eeec commit 958a2d6Copy full SHA for 958a2d6
1 file changed
packages/types/tailor.d.ts
@@ -77,8 +77,8 @@ declare namespace tailor.iconv {
77
*/
78
function decode<T extends string>(
79
buffer: Uint8Array | ArrayBuffer,
80
- encoding: T
81
- ): T extends 'UTF8' | 'UTF-8' ? string : Uint8Array;
+ encoding: string
+ ): string;
82
83
/**
84
* Encode string to buffer
0 commit comments