From dd7843cd0e833990e5b334790133d0f9a8af7824 Mon Sep 17 00:00:00 2001 From: Yang Liu Date: Thu, 12 Dec 2019 10:46:27 -0800 Subject: [PATCH] fix doc --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7df8439..4d19a01 100644 --- a/README.md +++ b/README.md @@ -213,7 +213,7 @@ const guest = new Guest(iGuest); You may subclass `Model` to extend the interface: ```typescript -import { extend } from 'io-interface'; +import { Model } from 'io-interface'; interface IUser { firstName: string; @@ -221,7 +221,7 @@ interface IUser { } interface User extends IUser {} -class User { +class User extends Model { // IMPORTANT!!! You need Model to get the constructor get name(): string { return `${user.firstName} ${user.lastName}`; },