Skip to content

Commit

Permalink
fix: add @dynamic to Store for fix build error use Partial
Browse files Browse the repository at this point in the history
  • Loading branch information
why520crazy committed Jul 8, 2021
1 parent 09f9348 commit a9ee64c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/store/ng-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/store",
"lib": {
"entryFile": "src/public-api.ts"
"entryFile": "src/index.ts"
},
"allowedNonPeerDependencies": ["@tethys/cdk"]
}
8 changes: 3 additions & 5 deletions packages/store/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ import { ActionState } from './action-state';
import { Action } from './action';
import { isFunction } from '@tethys/cdk/is';

interface Action {
type: string;
payload?: any;
}

/**
* @dynamic
*/
@Injectable()
export class Store<T = unknown> implements Observer<T>, OnDestroy {
private initialStateCache: T;
Expand Down
1 change: 1 addition & 0 deletions packages/store/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
},
"exclude": [
"src/test.ts",
"src/store/**/**",
"**/*.spec.ts"
]
}

0 comments on commit a9ee64c

Please sign in to comment.