Browse Source

feat: interface for jobs plugin

Signed-off-by: mertmit <mertmit99@gmail.com>
feat/export-nest
mertmit 2 years ago
parent
commit
93e31f29d8
  1. 14
      packages/nc-gui/nuxt-shim.d.ts

14
packages/nc-gui/nuxt-shim.d.ts vendored

@ -13,6 +13,20 @@ declare module '#app/nuxt' {
/** {@link import('./plugins/tele') Telemetry} Emit telemetry event */ /** {@link import('./plugins/tele') Telemetry} Emit telemetry event */
$e: (event: string, data?: any) => void $e: (event: string, data?: any) => void
$state: UseGlobalReturn $state: UseGlobalReturn
$jobs: {
subscribe(
job:
| {
id: string
name: string
}
| any,
subscribedCb?: () => void,
statusCb?: ((status: 'active' | 'completed' | 'failed' | 'refresh', error?: any) => void) | undefined,
logCb?: ((data: { message: string }) => void) | undefined,
): void
getStatus(name: string, id: string): Promise<string>
}
} }
} }

Loading…
Cancel
Save