From c22383e3b7fab5e50feb141229e7c9a00f9f9d65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Zieli=C5=84ski?= Date: Fri, 25 Feb 2022 17:02:25 +0100 Subject: [PATCH] Rename ts-selectors to selectors-ts --- packages/core-data/src/selectors-ts.ts | 13 +++---------- packages/core-data/src/selectors.js | 2 +- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/packages/core-data/src/selectors-ts.ts b/packages/core-data/src/selectors-ts.ts index cd19faf7658dbf..312efd50993d3f 100644 --- a/packages/core-data/src/selectors-ts.ts +++ b/packages/core-data/src/selectors-ts.ts @@ -109,7 +109,7 @@ export const getEntityRecord = createSelector( ] as any; } ); - +// // const commentDefault = getEntityRecord( {}, 'root', 'comment', 15 ); // // commentDefault is Comment<'edit'> // @@ -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, 'view'>({}, 'root', 'comment',15, { context: 'view' }); +// // commentCustom is Comment<'view'> diff --git a/packages/core-data/src/selectors.js b/packages/core-data/src/selectors.js index adbb8686be9355..622f64f7180dac 100644 --- a/packages/core-data/src/selectors.js +++ b/packages/core-data/src/selectors.js @@ -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 }; /**