Home > @lynx-js/rspeedy > ExposedAPI
ExposedAPI interface
The exposed API of Rspeedy. Can be used in Rsbuild plugin with api.useExposed.
Signature:
Home > @lynx-js/rspeedy > ExposedAPI
The exposed API of Rspeedy. Can be used in Rsbuild plugin with api.useExposed.
Signature:
export interface ExposedAPI import type { ExposedAPI } from '@lynx-js/rspeedy'
const RsbuildPlugin = {
name: 'my-rsbuild-plugin',
pre: ['lynx:rsbuild:plugin-api'],
setup(api) {
const rspeedyAPI = api.useExposed<ExposedAPI>(Symbol.for('rspeedy.api'))
},
}
