PluginProbe
Code Snippets / 4.0.0-beta.2
Code Snippets v4.0.0-beta.2
4.0.0-beta.2 3.10.2 3.10.1 3.10.0 3.10.0-beta.2 3.10.0-beta.1 4.0.0-beta.1 3.9.6 trunk 2.10.0 2.10.1 2.12.0 2.12.1 2.13.0 2.13.1 2.13.2 2.13.3 2.14.0 2.14.1 2.14.2 2.14.3 2.14.4 2.14.5 2.14.6 3.0.0 All 65 releases
code-snippets / js / types / schema / SnippetSchema.ts

SnippetSchema.ts in Code Snippets 4.0.0-beta.2, at js/types/schema/SnippetSchema.ts

33 lines 811 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 shared_network?: boolean | null
15 }
16
17 export interface SnippetIdentifierSchema {
18 readonly id: number
19 readonly network?: boolean | null
20 }
21
22 export interface SnippetSchema extends Readonly<Required<WritableSnippetSchema>>, SnippetIdentifierSchema {
23 readonly id: number
24 readonly modified: string
25 readonly last_active?: number
26 readonly trashed: boolean
27 readonly code_error?: readonly [string, number] | null
28 readonly code_error_trace?: string | null
29 readonly revision: string
30 readonly cloud_id: number
31 readonly is_cloud_owner: boolean
32 }
33