返回 reveal.js
index.ts
根目录 / plugin / zoom / index.ts
1 import type { RevealPlugin } from 'reveal.js';
2
3 // @ts-expect-error The runtime implementation remains in JS during the migration.
4 import ZoomImplementation from './plugin.js';
5
6 export interface ZoomPlugin extends RevealPlugin {
7 id: 'zoom';
8 }
9
10 const Zoom = ZoomImplementation as () => ZoomPlugin;
11
12 export default Zoom;
13
13 lines TYPESCRIPT