Skip to content

Commit

Permalink
Merge pull request #9 from abraham/remove-reflect
Browse files Browse the repository at this point in the history
Remove dist/reflect entrypoint
  • Loading branch information
abraham authored Jul 24, 2018
2 parents e0f6266 + 492ad8a commit 78fa344
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 43 deletions.
9 changes: 1 addition & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,7 @@ Usage
-----

```ts
import { Reflection as Reflect } from '@abraham/reflection';
Reflect.defineMetadata(metadataKey, metadataValue, target);
```

If you want a globally available version.

```ts
import '@abraham/reflection/dist/reflect';
import '@abraham/reflection';
Reflect.defineMetadata(metadataKey, metadataValue, target);
```

Expand Down
8 changes: 8 additions & 0 deletions src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,11 @@ test('decorate', () => {
test('metadata', () => {
expect(Reflect.metadata).toBeDefined();
});

test('hasOwnMetadata', () => {
expect(Reflect.hasOwnMetadata).toBeDefined();
});

test('getOwnMetadata', () => {
expect(Reflect.getOwnMetadata).toBeDefined();
});
25 changes: 0 additions & 25 deletions src/reflect.test.ts

This file was deleted.

10 changes: 0 additions & 10 deletions src/reflect.ts

This file was deleted.

0 comments on commit 78fa344

Please sign in to comment.