Skip to content

Instantly share code, notes, and snippets.

@LazyFatArrow LazyFatArrow/MoviesApi.ts
Last active Jan 4, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.