| 1 |
import type { SnippetScope } from '../Snippet' |
| 2 |
|
| 3 |
export interface WritableSnippetSchema { |
| 4 |
name?: string |
| 5 |
desc?: string |
| 6 |
code?: string |
| 7 |
tags?: string[] |
| 8 |
scope?: SnippetScope |
| 9 |
condition_id?: number |
| 10 |
active?: boolean |
| 11 |
locked?: boolean |
| 12 |
trashed?: boolean |
| 13 |
priority?: number |
| 14 |
network?: boolean | null |
| 15 |
shared_network?: boolean | null |
| 16 |
} |
| 17 |
|
| 18 |
export interface SnippetSchema extends Readonly<Required<WritableSnippetSchema>> { |
| 19 |
readonly id: number |
| 20 |
readonly modified: string |
| 21 |
readonly last_active?: number |
| 22 |
readonly trashed: boolean |
| 23 |
readonly code_error?: readonly [string, number] | null |
| 24 |
readonly code_error_trace?: string | null |
| 25 |
} |
| 26 |
|