Skip to content

Commit e671051

Browse files
authored
fix return type (#72)
1 parent 58889f3 commit e671051

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
@@ -85,8 +85,8 @@ declare namespace tailor.iconv {
8585
*/
8686
function decode<T extends string>(
8787
buffer: Uint8Array | ArrayBuffer,
88-
encoding: T
89-
): T extends 'UTF8' | 'UTF-8' ? string : Uint8Array;
88+
encoding: string
89+
): string;
9090

9191
/**
9292
* Encode string to buffer

0 commit comments

Comments
 (0)