diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2018-08-12 11:27:54 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-08-13 11:54:10 -0400 |
commit | e9d692ef70e05247e1d20f8536dd711d5df3309a (patch) | |
tree | 2b12d8136fb944ac09e619a5de421313df9ecbb7 | |
parent | 4772c14d125f61e0f78107f686d24ac72bd72d7c (diff) |
Use `@internal` with js/timers.ts
-rw-r--r-- | js/assets.ts | 3 | ||||
-rw-r--r-- | js/timers.ts | 1 | ||||
-rw-r--r-- | js/tsconfig.generated.json | 3 |
3 files changed, 3 insertions, 4 deletions
diff --git a/js/assets.ts b/js/assets.ts index 16f4cd983..6261f4ad3 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 e5c7a5f3c..3791e079d 100644 --- a/js/timers.ts +++ b/js/timers.ts @@ -21,6 +21,7 @@ interface Timer { const timers = new Map<number, Timer>(); +/** @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 c669388f8..4d76dd98f 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", |