Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an enum type or a string typing with string values that are been used for actionTypes in listen #629

Open
jorishermans opened this issue Oct 13, 2020 · 0 comments

Comments

@jorishermans
Copy link

export interface Filter {
    /** The collection name */
    collectionName?: string;
    /** The instance ID */
    instanceID?: string;
    /** The action type: ALL (default), CREATE, SAVE, DELETE */
    actionTypes?: string[];
}

actionTypes?: 'CREATE' | 'DELETE' | 'SAVE' | 'ALL'[]

Change to ->

export interface Filter {
    /** The collection name */
    collectionName?: string;
    /** The instance ID */
    instanceID?: string;
    /** The action type: ALL (default), CREATE, SAVE, DELETE */
    actionTypes?: 'ALL' | 'CREATE' | 'SAVE' | 'DELETE'[];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant