From 10a97679ac80b4304c75d33cbc59c5736d11deb1 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Mon, 15 Oct 2018 07:29:50 +1100 Subject: Align JSDoc to style guide. --- js/text_encoding.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'js/text_encoding.ts') diff --git a/js/text_encoding.ts b/js/text_encoding.ts index 087bbc952..72a355d5f 100644 --- a/js/text_encoding.ts +++ b/js/text_encoding.ts @@ -2,6 +2,7 @@ import * as base64 from "base64-js"; import { DenoError, ErrorKind } from "./errors"; +/** Decodes a string of data which has been encoded using base-64. */ export function atob(s: string): string { const rem = s.length % 4; // base64-js requires length exactly times of 4 @@ -24,6 +25,7 @@ export function atob(s: string): string { return result; } +/** Creates a base-64 ASCII string from the input string. */ export function btoa(s: string): string { const byteArray = []; for (let i = 0; i < s.length; i++) { -- cgit v1.2.3