| @@ -15,8 +15,16 @@ | ||
| 15 | 15 | readonly conditionId: number |
| 16 | 16 | readonly lastActive?: number |
| 17 | 17 | readonly code_error?: readonly [string, number] | null |
| 18 | 18 | readonly code_error_trace?: string | null |
| 19 | + readonly createdBy?: SnippetAuthor | null | |
| 20 | + readonly updatedBy?: SnippetAuthor | null | |
| 21 | +} | |
| 22 | + | |
| 23 | +export interface SnippetAuthor { | |
| 24 | + readonly id: number | |
| 25 | + readonly displayName: string | |
| 26 | + readonly avatarUrl: string | |
| 19 | 27 | } |
| 20 | 28 | |
| 21 | 29 | export const SNIPPET_TYPES = <const> ['php', 'html', 'css', 'js', 'cond'] |
| 22 | 30 | export type SnippetType = typeof SNIPPET_TYPES[number] |