Skip to content

Commit

Permalink
chore: export cursor and order from index
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin658 committed Mar 4, 2020
1 parent 3c13986 commit 7b8209d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { ObjectType } from 'typeorm';

import Paginator, { Order } from './Paginator';
import Paginator, { Order, Cursor } from './Paginator';

export { Order, Cursor };

export interface PagingQuery {
afterCursor?: string;
Expand Down
3 changes: 1 addition & 2 deletions test/integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import { expect } from 'chai';
import { createConnection, getConnection } from 'typeorm';

import { createQueryBuilder } from './utils/createQueryBuilder';
import { buildPaginator } from '../src/index';
import { Cursor } from '../src/Paginator';
import { buildPaginator, Cursor } from '../src/index';
import { Example } from './entities/Example';

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

0 comments on commit 7b8209d

Please sign in to comment.