Skip to content

Commit

Permalink
[api] refactor: use api-client for exposed Game interface
Browse files Browse the repository at this point in the history
  • Loading branch information
lautarodragan committed Aug 3, 2020
1 parent 1dd57dd commit 1f9495c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 18 deletions.
8 changes: 8 additions & 0 deletions api/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"dependencies": {
"@koa/cors": "3.1.0",
"@koa/router": "9.3.1",
"@taros-minesweeper/client": "1.0.0",
"@taros-minesweeper/lib": "1.0.1",
"koa": "2.13.0",
"koa-bodyparser": "4.3.0",
Expand Down
2 changes: 1 addition & 1 deletion api/src/business.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Game } from '@taros-minesweeper/client'
import {
makeBoard,
CellValue,
Expand All @@ -9,7 +10,6 @@ import {
isWon,
} from '@taros-minesweeper/lib'

import { Game } from './game'
import { Dao } from './dao'

interface Config {
Expand Down
3 changes: 1 addition & 2 deletions api/src/dao.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { Game } from '@taros-minesweeper/client'
import { Board, Coord } from '@taros-minesweeper/lib'
import { Collection } from 'mongodb'

import { Game } from './game'

interface DaoConfig {
readonly collection: Collection<Game>
}
Expand Down
15 changes: 0 additions & 15 deletions api/src/game.ts

This file was deleted.

0 comments on commit 1f9495c

Please sign in to comment.