@deconz-community/directus-extension-ddf-store
Version:
Extension for Directus to store DDF files in the database, used only by the Deconz Community
18 lines (14 loc) • 536 B
text/typescript
import type * as Services from '@directus/api/dist/services/index'
import type { defineEndpoint } from '@directus/extensions-sdk'
type InstallFunction = Extract<Parameters<typeof defineEndpoint>[0], { handler: unknown }>['handler']
export interface GlobalContext {
router: Parameters<InstallFunction>[0]
context: Parameters<InstallFunction>[1]
services: typeof Services
schema: Awaited<ReturnType<Parameters<InstallFunction>[1]['getSchema']>>
}
export interface KeySet {
public: string
private: string
type: 'system'
}