File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -43,11 +43,16 @@ const fileSignatures = {
4343 * numbers above), then the mimeType field will be set.
4444 */
4545class Node {
46- /** @param {number } value */
46+ /** @type {string } */
47+ mimeType ;
48+
49+ /** @type {Object<number, Node> } */
50+ children = { } ;
51+
52+ /** @param {number } value The byte that this Node points at. */
4753 constructor ( value ) {
54+ /** @type {number } */
4855 this . value = value ;
49- this . children = { } ;
50- this . mimeType = undefined ;
5156 }
5257}
5358
@@ -98,7 +103,7 @@ export function initialize() {
98103/**
99104 * Finds the likely MIME type represented by the ArrayBuffer.
100105 * @param {ArrayBuffer } ab
101- * @return {string } The MIME type of the buffer, or undefined.
106+ * @returns {string } The MIME type of the buffer, or undefined.
102107 */
103108export function findMimeType ( ab ) {
104109 if ( ! root ) {
You can’t perform that action at this time.
0 commit comments