INNER CODE UNIT · TypeScript

main

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

async function main(): Promise<void> {
  const runtimeConfig = await loadRuntimeConfig();
  if (runtimeConfig.members.length === 0) {
    throw new InternalError('Playground runtime config carries no scratch-project members');
  }

  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');
  }

  const filePicker = document.getElementById('file-picker');
  if (filePicker === null) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…