We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58889f3 commit e671051Copy full SHA for e671051
1 file changed
packages/types/tailor.d.ts
@@ -85,8 +85,8 @@ declare namespace tailor.iconv {
85
*/
86
function decode<T extends string>(
87
buffer: Uint8Array | ArrayBuffer,
88
- encoding: T
89
- ): T extends 'UTF8' | 'UTF-8' ? string : Uint8Array;
+ encoding: string
+ ): string;
90
91
/**
92
* Encode string to buffer
0 commit comments