mirror of
https://github.com/sasjs/server.git
synced 2025-12-10 19:34:34 +00:00
10 lines
201 B
TypeScript
10 lines
201 B
TypeScript
export interface LogLine {
|
|
line: string
|
|
}
|
|
|
|
export const parseLogToArray = (content?: string): LogLine[] => {
|
|
if (!content) return []
|
|
|
|
return content.split('\n').map((line) => ({ line: line }))
|
|
}
|