Skip to content

AI-native design editor. Open-source Figma alternative.

264 B
Raw Blame
export function quote(text: string): string {
  return JSON.stringify(text)
}

export function error(text: string, line: number, column: number): never {
  var error = new Error(text)
  ;(error as any).line = line
  ;(error as any).column = column
  throw error
}