From 190249dcd8686ee11e763ddb49aeff443f7fd25e Mon Sep 17 00:00:00 2001 From: Craig Beck Date: Fri, 19 Apr 2024 14:34:45 -0700 Subject: [PATCH] Fix type; remove outdate comment; remove export of instance --- src/AppForServer.ts | 4 ++-- src/components.ts | 1 - src/index.ts | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/AppForServer.ts b/src/AppForServer.ts index ef2d1543..e6efba9d 100644 --- a/src/AppForServer.ts +++ b/src/AppForServer.ts @@ -45,7 +45,7 @@ function htmlCompiler(file) { return file; } -type CompilerFunciton = (file: string, filename?: string, options?: unknown) => string; +type CompilerFunction = (file: string, filename?: string, options?: unknown) => string; function watchOnce(filenames, callback) { const watcher = chokidar.watch(filenames); @@ -64,7 +64,7 @@ function watchOnce(filenames, callback) { export class AppForServer extends App { agents: Record; - compilers: Record; + compilers: Record; scriptBaseUrl: string; scriptCrossOrigin: boolean; scriptFilename: string; diff --git a/src/components.ts b/src/components.ts index 047397b3..1b4c7970 100644 --- a/src/components.ts +++ b/src/components.ts @@ -459,7 +459,6 @@ export class ComponentFactory { init(context: Context) { const DataConstructor = this.constructorFn.DataConstructor || ComponentModelData; - // @TODO: verify types form DataConstructor, is there more appropriate type? const data = new DataConstructor(); // eslint-disable-next-line new-cap const component = new this.constructorFn(context, data); diff --git a/src/index.ts b/src/index.ts index 3ef86170..39331ca1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -32,6 +32,5 @@ export function use(plugin: (derby: Derby, options?: T) => Derby, o export { DerbyForClient as Derby, - instance, util, }