From 5b65cef1bf9f6672dd8bb2f971204b0017dd7b6f Mon Sep 17 00:00:00 2001 From: waiting <1661926154@qq.com> Date: Fri, 2 Feb 2024 17:09:08 +0800 Subject: [PATCH] feat(kmore): update interface OrderBy --- packages/kmore/src/lib/builder.types.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/kmore/src/lib/builder.types.ts b/packages/kmore/src/lib/builder.types.ts index 1160e9eea..e67a93e15 100644 --- a/packages/kmore/src/lib/builder.types.ts +++ b/packages/kmore/src/lib/builder.types.ts @@ -410,22 +410,22 @@ interface OrderBy< ( columnName: keyof TRecord | QueryBuilder, - order?: 'asc' | 'desc', - nulls?: 'first' | 'last' + order?: 'asc' | 'desc' | undefined, + nulls?: 'first' | 'last' | undefined ): KmoreQueryBuilder ( columnName: string | QueryBuilder, - order?: string, - nulls?: string + order?: string | undefined, + nulls?: string | undefined ): KmoreQueryBuilder ( columnDefs: (| keyof TRecord | Readonly<{ column: keyof TRecord | QueryBuilder, - order?: 'asc' | 'desc', - nulls?: 'first' | 'last', + order?: 'asc' | 'desc' | undefined, + nulls?: 'first' | 'last' | undefined, }>)[] ): KmoreQueryBuilder @@ -433,8 +433,8 @@ interface OrderBy< columnDefs: (| string | Readonly<{ column: string | QueryBuilder, - order?: string, - nulls?: string, + order?: string | undefined, + nulls?: string | undefined, }>)[] ): KmoreQueryBuilder }