feat: Expose FrameProcessorPlugin TS type

This commit is contained in:
Marc Rousavy 2024-01-17 11:58:32 +01:00
parent 773f278df8
commit 03ee0a2099
No known key found for this signature in database
GPG Key ID: 83BEF0F19E8F5321

View File

@ -10,7 +10,11 @@ import { assertJSIAvailable } from './JSIHelper'
type BasicParameterType = string | number | boolean | undefined type BasicParameterType = string | number | boolean | undefined
type ParameterType = BasicParameterType | BasicParameterType[] | Record<string, BasicParameterType | undefined> type ParameterType = BasicParameterType | BasicParameterType[] | Record<string, BasicParameterType | undefined>
interface FrameProcessorPlugin { /**
* An initialized native instance of a FrameProcessorPlugin.
* All memory allocated by this plugin will be deleted once this value goes out of scope.
*/
export interface FrameProcessorPlugin {
/** /**
* Call the native Frame Processor Plugin with the given Frame and options. * Call the native Frame Processor Plugin with the given Frame and options.
* @param frame The Frame from the Frame Processor. * @param frame The Frame from the Frame Processor.