Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript support. #9

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add typescript declaration file
  • Loading branch information
xtyxtyx committed Jan 22, 2017
commit aa1770cfeee4664e6c4f8c2e3014ad990bddf431
3 changes: 2 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ declare module "urlsafe-base64" {
* removed.
*/
export function encode(buffer: Buffer): string;

/**
* Return an decoded URL Safe Base64 as Buffer
*/
Expand All @@ -21,4 +22,4 @@ declare module "urlsafe-base64" {
* Validates a string if it is URL Safe Base64 encoded.
*/
export function validate(base64: string): boolean;
}
}