mirror of
https://github.com/supabase/supabase.git
synced 2026-07-07 12:59:40 +08:00
21 lines
458 B
TypeScript
21 lines
458 B
TypeScript
export type Json = Record<
|
|
string,
|
|
string | number | boolean | null | Json[] | { [key: string]: Json }
|
|
>
|
|
|
|
export type Section = {
|
|
content: string
|
|
heading?: string
|
|
slug?: string
|
|
}
|
|
|
|
export abstract class BaseSource {
|
|
checksum?: string
|
|
meta?: Json
|
|
sections?: Section[]
|
|
|
|
constructor(public source: string, public path: string, public parentPath?: string) {}
|
|
|
|
abstract load(): Promise<{ checksum: string; meta?: Json; sections: Section[] }>
|
|
}
|