UNPKG

mongodb-stitch

Version:

[![Join the chat at https://gitter.im/mongodb/stitch](https://badges.gitter.im/mongodb/stitch.svg)](https://gitter.im/mongodb/stitch?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

17 lines (16 loc) 498 B
import { Codec } from "mongodb-stitch-core-sdk"; export interface UserCreator { readonly email: string; readonly password: string; } export declare class UserCreatorCodec implements Codec<UserCreator> { decode(from: any): UserCreator; encode(from: UserCreator): object; } export interface UserResponse { readonly id: string; } export declare class UserResponseCodec implements Codec<UserResponse> { decode(from: any): UserResponse; encode(from: UserResponse): object; }