Skip to content

Commit

Permalink
fix: typo in 'overleaf' in index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Neet-Nestor committed Oct 12, 2024
1 parent 77077dc commit dacd6b6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import * as Oveleaf from "./page/overleaf";
import * as Overleaf from "./page/overleaf";
import { ToolName } from "./tool";
export { getToolInfo, getToolsInfo, allTools } from "./tool";

const PAGE_HANDLER_MAP: Record<string, typeof Oveleaf.PageHandler> = {
"www.overleaf.com": Oveleaf.PageHandler,
const PAGE_HANDLER_MAP: Record<string, typeof Overleaf.PageHandler> = {
"www.overleaf.com": Overleaf.PageHandler,
};

const PAGE_TOOLS_MAP: Record<string, ToolName[]> = {
"www.overleaf.com": Oveleaf.availableTools,
"www.overleaf.com": Overleaf.availableTools,
};

export const isPageSupported = (url: string) => {
Expand All @@ -31,3 +31,5 @@ export const getAvailableTools = () => {
}
console.error("[Web Agent Interface] No tools found for the current page");
};

export * as Overleaf from './page/overleaf';
2 changes: 1 addition & 1 deletion webpack.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = {
type: "commonjs2",
},
clean: {
keep: "index.d.ts",
keep: /\.d\.ts$/,
},
sourceMapFilename: "[file].map",
},
Expand Down

0 comments on commit dacd6b6

Please sign in to comment.