INNER CODE UNIT · TypeScript

main

prisma/prisma · apps/lsp-playground/src/client/main.ts:105

async function main(): Promise<void> {
  const runtimeConfig = await loadRuntimeConfig();

  const pathEl = document.getElementById('schema-path');
  if (pathEl !== null) {
    pathEl.textContent = runtimeConfig.schemaPath;
  }

  const htmlContainer = document.getElementById('editor');
  if (htmlContainer === null) {
    throw new Error('#editor mount point not found');
  }

  const formatButton = document.getElementById('format-document');
  if (!(formatButton instanceof HTMLButtonElement)) {
    throw new Error('#format-document button not found');
  }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…