From 10dc71133af211de40e29e7a7ab8c470a4a2c417 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Tue, 4 Sep 2018 12:23:38 -0700 Subject: Mark APIs at internal and include JSDoc in types --- js/errors.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'js/errors.ts') diff --git a/js/errors.ts b/js/errors.ts index 2fca10eaf..11d4cd509 100644 --- a/js/errors.ts +++ b/js/errors.ts @@ -1,5 +1,6 @@ import { deno as fbs } from "gen/msg_generated"; +// @internal export class DenoError extends Error { constructor(readonly kind: T, msg: string) { super(msg); @@ -7,6 +8,7 @@ export class DenoError extends Error { } } +// @internal export function maybeThrowError(base: fbs.Base): void { const kind = base.errorKind(); if (kind !== fbs.ErrorKind.NoError) { -- cgit v1.2.3