/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
packages/video-conversion/src/worker.ts
24 строки
608 B
Marco Ciampini
ESLint: Replace strict config with bulk suppressions (#81248)
07 авг 2026, 14:34
Не верифицирован
07 авг 2026, 14:34
7f43eaf
Код
Авторство
О чём код?
/** * Worker entry point for video conversion. * * This file exposes the video conversion functions in the Web Worker * context. The @wordpress/worker-threads library handles the RPC * communication with the main thread. */ import { expose } from '@wordpress/worker-threads'; import { cancelOperations, convertGifToVideo } from './index'; /** * The API object that exposes the video conversion functions to the main thread. */ const api = { cancelOperations, convertGifToVideo, }; expose( api ); /** * Type export for use with wrap() on the main thread. */ export type WorkerAPI = typeof api;