Skip to content

Commit

Permalink
Rename ts-selectors to selectors-ts
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel committed Feb 25, 2022
1 parent 863f7af commit c22383e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
13 changes: 3 additions & 10 deletions packages/core-data/src/selectors-ts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export const getEntityRecord = createSelector(
] as any;
}
);

//
// const commentDefault = getEntityRecord( {}, 'root', 'comment', 15 );
// // commentDefault is Comment<'edit'>
//
Expand All @@ -121,12 +121,5 @@ export const getEntityRecord = createSelector(
// const commentInvalidPK = getEntityRecord( {}, 'root', 'comment', '15' );
// // commentInvalidPK shows a TypeScript error
//
// const commentCustom = getEntityRecord< Comment< 'view' >, 'view' >(
// {},
// 'root',
// 'comment',
// 15,
// {
// context: 'view',
// }
// );
// const commentCustom = getEntityRecord<Comment< 'view' >, 'view'>({}, 'root', 'comment',15, { context: 'view' });
// // commentCustom is Comment<'view'>
2 changes: 1 addition & 1 deletion packages/core-data/src/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { STORE_NAME } from './name';
import { getQueriedItems } from './queried-data';
import { DEFAULT_ENTITY_KEY } from './entities';
import { isRawAttribute } from './utils';
import { getEntityRecord } from './ts-selectors';
import { getEntityRecord } from './selectors-ts';
export { getEntityRecord };

/**
Expand Down

0 comments on commit c22383e

Please sign in to comment.