Last active
January 4, 2019 13:24
-
-
Save LazyFatArrow/92fc02e97114189a26f1830359f181ac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import IResource from "typings/IResource"; | |
let movies: object[] = [] | |
export default class MoviesApi implements IResource { | |
create(data: object) { | |
movies.push(data) | |
return data | |
} | |
findMany() { | |
return movies | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment