Skip to content

Commit

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

/**
* Recursively instantiate a model with its metadata
Expand Down
8 changes: 0 additions & 8 deletions packages/classes/src/lib/utils/is-date-constructor.util.ts

This file was deleted.

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

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit b1dc211

Please sign in to comment.