@misternooblet/squara-types 1.0.20 → 1.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -41,7 +41,7 @@ export declare const NOTIFICATION_TYPE_TO_PAYLOAD_MAP: {
41
41
  NEW_GROUP_EXPENSE: NewGroupExpenseNotification;
42
42
  };
43
43
  export type NotificationPayload = (typeof NOTIFICATION_TYPE_TO_PAYLOAD_MAP)[keyof typeof NOTIFICATION_TYPE_TO_PAYLOAD_MAP];
44
- export type NotificationDataInput<T extends NotificationType> = Omit<(typeof NOTIFICATION_TYPE_TO_PAYLOAD_MAP)[T], keyof SquaraNotification>;
44
+ export type NotificationDataInput<T extends NotificationType> = Omit<(typeof NOTIFICATION_TYPE_TO_PAYLOAD_MAP)[T], 'type'>;
45
45
  export declare function isNotificationType(value: unknown): value is NotificationType;
46
46
  export declare function isGroupUpdate(p: NotificationPayload): p is GroupUpdateNotification;
47
47
  export declare function isPendingSettlement(p: NotificationPayload): p is PendingSettlementNotification;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@misternooblet/squara-types",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "Shared TypeScript types for the Squara app.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",