Skip to content

Commit

Permalink
fix(Types): fix loading custom types
Browse files Browse the repository at this point in the history
  • Loading branch information
hatemhosny committed Jun 29, 2024
1 parent f9f7c42 commit 33458af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/livecodes/types/type-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import type { EditorLibrary, Types } from '../models';
import { getImports, hasUrlImportsOrExports } from '../compiler/import-map';
import { typesService } from '../services/types';
import { objectFilter, safeName } from '../utils/utils';
import { objectFilter } from '../utils/utils';

export const createTypeLoader = (baseUrl: string) => {
let loadedTypes: Types = {};
Expand Down Expand Up @@ -68,7 +68,7 @@ export const createTypeLoader = (baseUrl: string) => {
}
loadedTypes = { ...prevTypes, ...type };
const lib = {
filename: `/node_modules/${safeName(name)}/index.d.ts`,
filename: `/node_modules/${name}/index.d.ts`,
content,
};
if (typeof callback === 'function') {
Expand Down

0 comments on commit 33458af

Please sign in to comment.