Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update model.md #2359

Merged
merged 2 commits into from
Jun 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/docs/model.md
Original file line number Diff line number Diff line change
Expand Up @@ -677,9 +677,9 @@ So by using the @@deserialize@@ function with the extra groups options, we can m
<Tab label="Creation">

```typescript
import {deserialize} from "json-schema";
import { deserialize } from '@tsed/json-mapper';

const result = deserialize(
const result = deserialize<User>(
{
id: "id", // will be ignored because creation doesn't include `id` field
firstName: "firstName",
Expand All @@ -697,9 +697,9 @@ console.log(result); // User {firstName, lastName, email, password}
<Tab label="With group">

```typescript
import {deserialize} from "json-schema";
import { deserialize } from '@tsed/json-mapper';

const result = deserialize(
const result = deserialize<User>(
{
id: "id",
firstName: "firstName",
Expand All @@ -718,9 +718,9 @@ console.log(result); // User {id, firstName, lastName, email, password}
<Tab label="With glob pattern">

```typescript
import {deserialize} from "json-schema";
import { deserialize } from '@tsed/json-mapper';

const result = deserialize(
const result = deserialize<User>(
{
id: "id",
firstName: "firstName",
Expand Down