add commented remix type

pull/2246/head
yann300 3 years ago
parent 78fe3c36fd
commit 680c965264
  1. 5548
      libs/remix-ui/editor/src/lib/remix-plugin-types.ts
  2. 2
      libs/remix-ui/editor/src/lib/remix-ui-editor.tsx
  3. 14
      libs/remix-ui/editor/src/lib/web-types.ts

File diff suppressed because it is too large Load Diff

@ -7,7 +7,7 @@ import { cairoLang, cairoConf } from './cairoSyntax'
// import { ethersDTS, test } from './types'
import './remix-ui-editor.css'
import { loadTypes } from './types'
import { loadTypes } from './web-types'
type cursorPosition = {
startLineNumber: number,

@ -163,5 +163,19 @@ export const loadTypes = async (monaco) => {
const indexWeb3Util = await import('raw-loader!web3-utils/types/index.d.ts')
monaco.languages.typescript.typescriptDefaults.addExtraLib(indexWeb3Util.default, `file:///node_modules/@types/web3-utils/index.d.ts`)
/*
// remix
// @ts-ignore
const indexRemixApi = await import('./remix-plugin-types')
monaco.languages.typescript.typescriptDefaults.addExtraLib(indexRemixApi.types)
*/
monaco.languages.typescript.typescriptDefaults.addExtraLib(`
import { PluginClient } from 'packages/plugin/core/src/lib/client'
declare const remix: PluginClient
`)
console.log('loaded monaco types')
}
Loading…
Cancel
Save