Skip to content

Commit

Permalink
Fix type; remove outdate comment; remove export of instance
Browse files Browse the repository at this point in the history
  • Loading branch information
craigbeck committed Apr 19, 2024
1 parent fd5d86c commit 190249d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/AppForServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -64,7 +64,7 @@ function watchOnce(filenames, callback) {

export class AppForServer extends App {
agents: Record<string, Agent>;
compilers: Record<string, CompilerFunciton>;
compilers: Record<string, CompilerFunction>;
scriptBaseUrl: string;
scriptCrossOrigin: boolean;
scriptFilename: string;
Expand Down
1 change: 0 additions & 1 deletion src/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,5 @@ export function use<T = unknown>(plugin: (derby: Derby, options?: T) => Derby, o

export {
DerbyForClient as Derby,
instance,
util,
}

0 comments on commit 190249d

Please sign in to comment.