chore: updated filename to topicDefs

This commit is contained in:
ankitsridhar16
2023-01-23 11:49:41 +05:30
parent 480a34c0f7
commit cb1b13bdb4
2 changed files with 1 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
import { UserEnvironment } from '../user-environment/user-environments.model';
// A custom message type that defines the topic and the corresponding payload.
// For every module that publishes a subscription add its type def and the possible subscription type.
export type TopicDef = {
[
topic: `user_environment/${string}/${'created' | 'updated' | 'deleted'}`
]: UserEnvironment;
[topic: `user_environment/${string}/deleted_many`]: number;
};