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

feat(RequestQueryBuilder): generic type #652

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fjc0k
Copy link

@fjc0k fjc0k commented Dec 25, 2020

import { RequestQueryBuilder } from '@jayfong/nestjsx__crud-request'

export function buildCurdQuery<T extends Record<string, any>>(
  build: (
    builder: RequestQueryBuilder<keyof T & string>,
  ) => RequestQueryBuilder<keyof T & string>,
) {
  const builder = new RequestQueryBuilder()
  return build(builder).queryObject
}

image

@michaelyali michaelyali self-requested a review March 4, 2021 16:27
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

Successfully merging this pull request may close these issues.

1 participant