fix giving ref to types

pull/2851/head
yann300 2 years ago committed by GitHub
parent 13a2277158
commit 1b1dbf6772
  1. 4
      libs/remix-ui/editor/src/lib/web-types.ts

@ -227,9 +227,9 @@ export const loadTypes = async (monaco) => {
// @ts-ignore
const chaiType = await import('raw-loader!@types/chai/index.d.ts')
monaco.languages.typescript.typescriptDefaults.addExtraLib(chaiType.default)
monaco.languages.typescript.typescriptDefaults.addExtraLib(chaiType.default, `file:///node_modules/@types/chai/index.d.ts`)
// @ts-ignore
const mochaType = await import('raw-loader!@types/mocha/index.d.ts')
monaco.languages.typescript.typescriptDefaults.addExtraLib(mochaType.default)
monaco.languages.typescript.typescriptDefaults.addExtraLib(mochaType.default, `file:///node_modules/@types/mocha/index.d.ts`)
}
Loading…
Cancel
Save