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, }