Skip to content

Commit

Permalink
Merge pull request #10 from lifeomic/update-readme
Browse files Browse the repository at this point in the history
chore: update readme
  • Loading branch information
jkdowdle authored May 31, 2022
2 parents 58dc2b9 + b093ef7 commit c10f7d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,13 @@ If you're building a Koa app, you can use these generated types with the `implem
import Koa from 'koa';
import Router from 'koa-router';

import { implementSchema } from 'one-schema';
import { implementSchema } from '@lifeomic/one-schema';

import { APISchema } from './generated-api.ts';
import { Schema } from './generated-api.ts';

const router = new Router();

implementSchema(APISchema, {
implementSchema(Schema, {
on: router,
parse: (ctx, endpoint, schema, data) => {
// validate that `data` matches `schema`, using whatever
Expand Down

0 comments on commit c10f7d9

Please sign in to comment.