Skip to content

Commit

Permalink
revert types to simpler state
Browse files Browse the repository at this point in the history
  • Loading branch information
planttheidea committed Nov 2, 2019
1 parent 3b116d9 commit fc36f0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions index.d.ts
Expand Up @@ -8,10 +8,7 @@ declare namespace FastCopy {
has: (value: any) => boolean;
}

export type Copier = <ObjectType extends any = any>(
object: ObjectType,
cache: Cache,
) => ObjectType;
export type Copier = (object: any, cache: Cache) => any;

export type ObjectCloner = (object: any, realm: Realm, handleCopy: Copier, cache: Cache) => any;

Expand Down
5 changes: 1 addition & 4 deletions src/fast-copy.d.ts
Expand Up @@ -8,10 +8,7 @@ declare namespace FastCopy {
has: (value: any) => boolean;
}

export type Copier = <ObjectType extends any = any>(
object: ObjectType,
cache: Cache,
) => ObjectType;
export type Copier = (object: any, cache: Cache) => any;

export type ObjectCloner = (object: any, realm: Realm, handleCopy: Copier, cache: Cache) => any;

Expand Down

0 comments on commit fc36f0f

Please sign in to comment.