From 6bdbd27ec41011a4b61809f983795b53e8d7c0ae Mon Sep 17 00:00:00 2001 From: ppetzold Date: Sat, 27 Jun 2020 09:33:54 +0200 Subject: [PATCH] Correct default config types --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2a18fb6..3560406 100644 --- a/README.md +++ b/README.md @@ -130,7 +130,7 @@ export class CatsController { const paginateConfig: PaginateConfig { /** * Required: true (must have a minimum of one column) - * Type: keyof CatEntity + * Type: (keyof CatEntity)[] * Description: These are the columns that are valid to be sorted by. */ sortableColumns: ['id', 'name', 'color'], @@ -145,7 +145,7 @@ const paginateConfig: PaginateConfig { /** * Required: false - * Type: [string, 'ASC' | 'DESC'][] + * Type: [keyof CatEntity, 'ASC' | 'DESC'][] * Default: [[sortableColumns[0], 'ASC]] * Description: The order to display the sorted entities. */