(source: string)
| 3 | import { SessionChannel } from '@/clients/websocket'; |
| 4 | |
| 5 | function getValidationError(source: string) { |
| 6 | try { |
| 7 | JSON.parse(source); |
| 8 | return null; |
| 9 | } catch (e) { |
| 10 | const err = e as Error; |
| 11 | return err.message; |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | export interface TsConfigContextValue { |
| 16 | source: string; |