Skip to content

Commit 7b8209d

Browse files
committed
chore: export cursor and order from index
1 parent 3c13986 commit 7b8209d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/index.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { ObjectType } from 'typeorm';
22

3-
import Paginator, { Order } from './Paginator';
3+
import Paginator, { Order, Cursor } from './Paginator';
4+
5+
export { Order, Cursor };
46

57
export interface PagingQuery {
68
afterCursor?: string;

test/integration.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ import { expect } from 'chai';
22
import { createConnection, getConnection } from 'typeorm';
33

44
import { createQueryBuilder } from './utils/createQueryBuilder';
5-
import { buildPaginator } from '../src/index';
6-
import { Cursor } from '../src/Paginator';
5+
import { buildPaginator, Cursor } from '../src/index';
76
import { Example } from './entities/Example';
87

98
describe('TypeORM cursor-based pagination test', () => {

0 commit comments

Comments
 (0)