返回 reveal.js
index.ts
根目录 / plugin / notes / 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 NotesImplementation from './plugin.js';
5
6 export interface NotesPlugin extends RevealPlugin {
7 id: 'notes';
8 open(): void;
9 }
10
11 const Notes = NotesImplementation as () => NotesPlugin;
12
13 export default Notes;
14
14 lines TYPESCRIPT