Skip to content

Commit

Permalink
fix(core): fixed typings
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewcourtice committed Aug 3, 2021
1 parent a4bc9a5 commit e8bcd49
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion core/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const build = require('@harlem/build');
(async () => {
const cwd = path.resolve('.');

return build(cwd, 'harlem', {
return build(cwd, 'index', {
globalName: 'Harlem'
});
})();
6 changes: 3 additions & 3 deletions core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"author": "Andrew Courtice <[email protected]>",
"description": "Simple, unopinionated, lightweight and extensible state management for Vue 3",
"homepage": "https://harlemjs.com",
"main": "dist/harlem.cjs.js",
"module": "dist/harlem.bundler.esm.js",
"unpkg": "dist/harlem.min.js",
"main": "dist/index.cjs.js",
"module": "dist/index.bundler.esm.js",
"unpkg": "dist/index.min.js",
"types": "dist/index.d.ts",
"source": "src/index.ts",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,4 +176,4 @@ export default {
eventEmitter.emit(EVENTS.core.installed);
},

} as Plugin;
} as Plugin;
2 changes: 1 addition & 1 deletion core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type {

type UnionToIntersection<U> = (U extends any ? (arg: U) => any : never) extends ((arg: infer I) => void) ? I : never;

export type BaseState = Record<PropertyKey, unknown>;
export type BaseState = object;
export type StoreProvider<TState extends BaseState> = keyof StoreProviders<TState>;
export type ReadState<TState extends BaseState> = DeepReadonly<TState>;
export type WriteState<TState extends BaseState> = TState;
Expand Down

0 comments on commit e8bcd49

Please sign in to comment.