Skip to content

Commit 958a2d6

Browse files
committed
Fix return type
1 parent d72eeec commit 958a2d6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/types/tailor.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ declare namespace tailor.iconv {
7777
*/
7878
function decode<T extends string>(
7979
buffer: Uint8Array | ArrayBuffer,
80-
encoding: T
81-
): T extends 'UTF8' | 'UTF-8' ? string : Uint8Array;
80+
encoding: string
81+
): string;
8282

8383
/**
8484
* Encode string to buffer

0 commit comments

Comments
 (0)