Skip to content

Commit

Permalink
chore: convert file to typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
bchrobot committed Oct 4, 2022
1 parent 80c855b commit c1c95eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/index.js → src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export {
isRoleGreater
} from "./permissions";

export const gzip = (str) =>
export const gzip = (str: string) =>
new Promise((resolve, reject) => {
zlib.gzip(str, (err, res) => {
if (err) {
Expand All @@ -43,7 +43,7 @@ export const gzip = (str) =>
});
});

export const gunzip = (buf) =>
export const gunzip = (buf: zlib.InputType) =>
new Promise((resolve, reject) => {
zlib.gunzip(buf, (err, res) => {
if (err) {
Expand Down

0 comments on commit c1c95eb

Please sign in to comment.