Skip to content

Commit

Permalink
fix(plugins): fixed naming of default exports
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewcourtice committed Nov 4, 2020
1 parent ca51bf2 commit b6b0447
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugins/reset/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function reset(name: string): void {
store.exec('$reset', SENDER, state => overwrite(state, clone(snapshot)));
}

export default function(): HarlemPlugin {
export default function createResetPlugin(): HarlemPlugin {

return {
name: 'reset',
Expand Down
2 changes: 1 addition & 1 deletion plugins/snapshot/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function snapshot(name: string): Snapshot {
};
}

export default function(): HarlemPlugin {
export default function createSnapshotPlugin(): HarlemPlugin {

return {
name: 'snapshot',
Expand Down
2 changes: 1 addition & 1 deletion plugins/storage/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import type {

export * from './types';

export default function(stores: string | string[], options: Partial<Options> = OPTIONS): HarlemPlugin {
export default function createStoragePlugin(stores: string | string[], options: Partial<Options> = OPTIONS): HarlemPlugin {
const {
type,
prefix,
Expand Down
2 changes: 1 addition & 1 deletion plugins/transaction/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export function transaction<T>(name: string, transactor: Transactor<T>): Transac
}
}

export default function(): HarlemPlugin {
export default function createTransactionPlugin(): HarlemPlugin {

return {
name: 'transaction',
Expand Down

1 comment on commit b6b0447

@vercel
Copy link

@vercel vercel bot commented on b6b0447 Nov 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.