From e9d692ef70e05247e1d20f8536dd711d5df3309a Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Sun, 12 Aug 2018 11:27:54 -0700 Subject: [PATCH] Use `@internal` with js/timers.ts --- js/assets.ts | 3 --- js/timers.ts | 1 + js/tsconfig.generated.json | 3 ++- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/js/assets.ts b/js/assets.ts index 16f4cd983f..6261f4ad3b 100644 --- a/js/assets.ts +++ b/js/assets.ts @@ -94,7 +94,4 @@ export const assetSourceCode: { [key: string]: string } = { // Static definitions "typescript.d.ts": typescriptDts, "types.d.ts": typesDts, - - // TODO(ry) Remove the following when possible. It's a workaround. - "msg_generated.d.ts": "", }; diff --git a/js/timers.ts b/js/timers.ts index e5c7a5f3cc..3791e079d4 100644 --- a/js/timers.ts +++ b/js/timers.ts @@ -21,6 +21,7 @@ interface Timer { const timers = new Map(); +/** @internal */ export function onMessage(msg: fbs.TimerReady) { const timerReadyId = msg.id(); const timerReadyDone = msg.done(); diff --git a/js/tsconfig.generated.json b/js/tsconfig.generated.json index c669388f86..4d76dd98ff 100644 --- a/js/tsconfig.generated.json +++ b/js/tsconfig.generated.json @@ -6,7 +6,8 @@ "extends": "../tsconfig.json", "compilerOptions": { "declaration": true, - "emitDeclarationOnly": true + "emitDeclarationOnly": true, + "stripInternal": true }, "files": [ "../node_modules/typescript/lib/lib.esnext.d.ts",