Skip to content

Commit

Permalink
make GameView type consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
scytacki committed Dec 10, 2024
1 parent 71fe0e4 commit b3fc392
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions v3/src/v2/codap-v2-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -688,12 +688,12 @@ export interface ICodapV2WebViewComponent extends ICodapV2BaseComponent {
export const isV2WebViewComponent =
(component: ICodapV2BaseComponent): component is ICodapV2WebViewComponent => component.type === "DG.WebView"

export interface ICodapGameViewComponent extends ICodapV2BaseComponent {
export interface ICodapV2GameViewComponent extends ICodapV2BaseComponent {
type: "DG.GameView"
componentStorage: ICodapV2GameViewStorage
}
export const isV2GameViewComponent =
(component: ICodapV2BaseComponent): component is ICodapGameViewComponent => component.type === "DG.GameView"
(component: ICodapV2BaseComponent): component is ICodapV2GameViewComponent => component.type === "DG.GameView"

export interface ICodapV2GraphComponent extends ICodapV2BaseComponent {
type: "DG.GraphView"
Expand Down Expand Up @@ -726,7 +726,7 @@ export const isV2TextComponent = (component: ICodapV2BaseComponent): component i
export type CodapV2Component =
ICodapV2CalculatorComponent |
ICodapV2CaseCardComponent|
ICodapGameViewComponent |
ICodapV2GameViewComponent |
ICodapV2GraphComponent |
ICodapV2GuideComponent |
ICodapV2ImageComponent |
Expand Down

0 comments on commit b3fc392

Please sign in to comment.