Skip to content

Commit

Permalink
fix: loading plugin argument type and remove socket plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
LiJun committed Mar 10, 2020
1 parent f0347cb commit c2d7997
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 68 deletions.
2 changes: 1 addition & 1 deletion src/plugin/loading.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type ValueOf<T extends Record<string, any>, K> = K extends keyof T
? T[K]
: never;

export default ({ use, createStore }: CubeAPI) => {
export default ({ use, createStore }: Pick<CubeAPI, 'use' | 'createStore'>) => {
const loadingStore = createStore({
name: "loading",
state: {} as Record<string, any>,
Expand Down
67 changes: 0 additions & 67 deletions src/plugin/socket.ts

This file was deleted.

0 comments on commit c2d7997

Please sign in to comment.