From deb0033ecc83f243eb1f51920408f2f31cbcdd94 Mon Sep 17 00:00:00 2001 From: jmainguytalend Date: Tue, 12 Sep 2023 17:07:58 +0200 Subject: [PATCH] Update file name --- .../src/{types/types.util.test.ts => filters/filters.test.ts} | 4 ++-- .../utils/src/{types/types.util.ts => filters/filters.ts} | 0 packages/utils/src/filters/index.ts | 1 + packages/utils/src/index.ts | 4 ++-- packages/utils/src/types/index.ts | 1 - 5 files changed, 5 insertions(+), 5 deletions(-) rename packages/utils/src/{types/types.util.test.ts => filters/filters.test.ts} (85%) rename packages/utils/src/{types/types.util.ts => filters/filters.ts} (100%) create mode 100644 packages/utils/src/filters/index.ts delete mode 100644 packages/utils/src/types/index.ts diff --git a/packages/utils/src/types/types.util.test.ts b/packages/utils/src/filters/filters.test.ts similarity index 85% rename from packages/utils/src/types/types.util.test.ts rename to packages/utils/src/filters/filters.test.ts index 7ed94a732bb..cf2c1762e22 100644 --- a/packages/utils/src/types/types.util.test.ts +++ b/packages/utils/src/filters/filters.test.ts @@ -1,6 +1,6 @@ -import { valued } from './types.util'; +import { valued } from './filters'; -describe('types.util', () => { +describe('Filters', () => { describe('valued', () => { it('Filter array with null and undefined values', () => { const result = ['Terra', undefined, 'Mars', 'Baal', null, 'Valhalla'].filter(valued); diff --git a/packages/utils/src/types/types.util.ts b/packages/utils/src/filters/filters.ts similarity index 100% rename from packages/utils/src/types/types.util.ts rename to packages/utils/src/filters/filters.ts diff --git a/packages/utils/src/filters/index.ts b/packages/utils/src/filters/index.ts new file mode 100644 index 00000000000..56c36b7ff89 --- /dev/null +++ b/packages/utils/src/filters/index.ts @@ -0,0 +1 @@ +export * from './filters'; diff --git a/packages/utils/src/index.ts b/packages/utils/src/index.ts index 4358656813d..cb3f2b04d14 100644 --- a/packages/utils/src/index.ts +++ b/packages/utils/src/index.ts @@ -1,6 +1,6 @@ import * as date from './date'; -import * as typesUtil from './types'; +import * as filters from './filters'; import { randomUUID } from './uuid'; import validation from './validation'; -export { date, validation, randomUUID, typesUtil }; +export { date, validation, randomUUID, filters as typesUtil }; diff --git a/packages/utils/src/types/index.ts b/packages/utils/src/types/index.ts deleted file mode 100644 index 15e0bd5237e..00000000000 --- a/packages/utils/src/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './types.util';