Skip to content

Commit

Permalink
fix: 调整类型推导
Browse files Browse the repository at this point in the history
  • Loading branch information
kampiu committed Jan 16, 2024
1 parent 23c47a4 commit 4985a0c
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/Nodes/NodeD/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ export const install = () => {
})
}

export type { NodeCInstance } from "./NodeD"
export type { NodeDInstance } from "./NodeD"
export default NodeD
2 changes: 1 addition & 1 deletion src/Nodes/NodeE/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ export const install = () => {
})
}

export type { NodeCInstance } from "./NodeE"
export type { NodeEInstance } from "./NodeE"
export default NodeE
2 changes: 1 addition & 1 deletion src/Nodes/NodeF/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ export const install = () => {
})
}

export type { NodeCInstance } from "./NodeF"
export type { NodeFInstance } from "./NodeF"
export default NodeF
2 changes: 1 addition & 1 deletion src/Nodes/NodeG/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ export const install = () => {
})
}

export type { NodeCInstance } from "./NodeG"
export type { NodeGInstance } from "./NodeG"
export default NodeG
2 changes: 1 addition & 1 deletion src/Nodes/NodeH/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ export const install = () => {
})
}

export type { NodeCInstance } from "./NodeH"
export type { NodeHInstance } from "./NodeH"
export default NodeH
2 changes: 1 addition & 1 deletion src/Nodes/NodeI/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ export const install = () => {
})
}

export type { NodeCInstance } from "./NodeI"
export type { NodeIInstance } from "./NodeI"
export default NodeI
2 changes: 1 addition & 1 deletion src/Nodes/NodeJ/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ export const install = () => {
})
}

export type { NodeCInstance } from "./NodeJ"
export type { NodeJInstance } from "./NodeJ"
export default NodeJ
7 changes: 2 additions & 5 deletions src/context/ContextMenu/ContextMenuProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import React, { Component, PropsWithChildren } from "react"
import React, { PropsWithChildren } from "react"
import { ContextMenuProvider as BaseContextMenuProvider } from "./store"
import ContextMenu from "./ContextMenu"

function ContextMenuProvider({children}: PropsWithChildren) {

return (
<BaseContextMenuProvider>
<ContextMenu>
{ children }
</ContextMenu>
{ children }
</BaseContextMenuProvider>
)
}
Expand Down

0 comments on commit 4985a0c

Please sign in to comment.