(id: string, adapter: DocumentAdapter)
| 16 | * Call this from the host application (Office Add-in) before using the component. |
| 17 | */ |
| 18 | export function registerAdapter(id: string, adapter: DocumentAdapter): void { |
| 19 | adapterRegistry.set(id, adapter); |
| 20 | } |
| 21 | |
| 22 | /** |
| 23 | * Unregister an adapter. |