feat: Support Add/Remove notifications on containers

This commit is contained in:
Joachim Van Herwegen
2023-02-07 13:06:19 +01:00
parent 9e1e65cdb9
commit 134237a80f
17 changed files with 326 additions and 83 deletions

View File

@@ -35,7 +35,7 @@ export async function subscribe(type: string, webId: string, subscriptionUrl: st
* @param topic - The topic of the notification.
* @param type - What type of notification is expected.
*/
export function expectNotification(notification: unknown, topic: string, type: 'Create' | 'Update' | 'Delete'): void {
export function expectNotification(notification: unknown, topic: string, type: string): void {
const expected: any = {
'@context': [
'https://www.w3.org/ns/activitystreams',