Files
core/packages/api-client/models/snippet.ts
Innei b22666694a chore: lint
Signed-off-by: Innei <tukon479@gmail.com>
2023-06-10 16:36:14 +08:00

20 lines
365 B
TypeScript

import type { BaseModel } from './base'
export enum SnippetType {
JSON = 'json',
Function = 'function',
Text = 'text',
YAML = 'yaml',
}
export interface SnippetModel<T = unknown> extends BaseModel {
type: SnippetType
private: boolean
raw: string
name: string
reference: string
comment?: string
metatype?: string
schema?: string
data: T
}