Skip to content

Commit

Permalink
Merge pull request #1 from onhate/fix-exports
Browse files Browse the repository at this point in the history
fix: exports
  • Loading branch information
onhate authored Aug 14, 2023
2 parents 7f30d36 + d27c57c commit 8ed1010
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nest-onetable",
"version": "0.0.2",
"version": "0.0.3",
"private": false,
"license": "MIT",
"repository": {
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './module';
export * from './decorators';
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { TableConstructorParams } from 'dynamodb-onetable/dist/cjs/Table';
import { paramsSymbol, tableSymbol } from './decorators';

type TableParamsProvider = Omit<FactoryProvider<TableConstructorParams<any>>, 'provide'> | TableConstructorParams<any>;
type OnetableModuleOptions = TableParamsProvider & {
export type OnetableModuleOptions = TableParamsProvider & {
global?: boolean;
};

Expand Down
3 changes: 1 addition & 2 deletions src/onetable.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { DynamoDBClient } from '@aws-sdk/client-dynamodb';
import { Injectable } from '@nestjs/common';
import { Test } from '@nestjs/testing';
import { OneModel } from './decorators';
import { OnetableModule } from './module';
import { OneModel, OnetableModule } from './index';

@Injectable()
export class OneModelX extends OneModel('OneModelX', {
Expand Down

0 comments on commit 8ed1010

Please sign in to comment.