Skip to content

Commit

Permalink
refactor(pojos): use isDateConstructor and isPrimitiveConstructor fro…
Browse files Browse the repository at this point in the history
…m core
  • Loading branch information
nartc committed Feb 14, 2021
1 parent b1dc211 commit 66a2f33
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 33 deletions.
2 changes: 0 additions & 2 deletions packages/pojos/src/lib/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
export * from './instantiate.util';
export * from './is-date-constructor.util';
export * from './is-primitive-constructor.util';
9 changes: 6 additions & 3 deletions packages/pojos/src/lib/utils/instantiate.util.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import { isDefined, isEmpty } from '@automapper/core';
import {
isDateConstructor,
isDefined,
isEmpty,
isPrimitiveConstructor,
} from '@automapper/core';
import type { Dictionary } from '@automapper/types';
import { PojosMetadataStorage } from '../storages';
import { isDateConstructor } from './is-date-constructor.util';
import { isPrimitiveConstructor } from './is-primitive-constructor.util';

export function instantiate<TModel extends Dictionary<TModel>>(
metadataStorage: PojosMetadataStorage,
Expand Down
3 changes: 0 additions & 3 deletions packages/pojos/src/lib/utils/is-date-constructor.util.ts

This file was deleted.

5 changes: 0 additions & 5 deletions packages/pojos/src/lib/utils/is-primitive-constructor.util.ts

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 66a2f33

Please sign in to comment.