From 31130f9d20d24603ec5d54b9163168bc4d7247e6 Mon Sep 17 00:00:00 2001 From: Joschua Schneider Date: Tue, 14 Mar 2023 09:49:13 +0100 Subject: [PATCH] fix(Readme): Fix syntax highlighting in examples --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 42ad759d..0701f635 100644 --- a/README.md +++ b/README.md @@ -224,7 +224,7 @@ class Result { **Example**: ```typescript -const { getLines } from 'imaginary-parser' +import { getLines } from 'imaginary-parser' // ^ assume getLines has the following signature: // getLines(str: string): Result, Error> @@ -262,7 +262,7 @@ class Result { **Example**: ```typescript -import { parseHeaders } 'imaginary-http-parser' +import { parseHeaders } from 'imaginary-http-parser' // imagine that parseHeaders has the following signature: // parseHeaders(raw: string): Result @@ -522,7 +522,7 @@ class Result { **Example:** ```typescript -import { parseHeaders } 'imaginary-http-parser' +import { parseHeaders } from 'imaginary-http-parser' // imagine that parseHeaders has the following signature: // parseHeaders(raw: string): Result @@ -822,7 +822,7 @@ class ResultAsync { **Example**: ```typescript -const { findUsersIn } from 'imaginary-database' +import { findUsersIn } from 'imaginary-database' // ^ assume findUsersIn has the following signature: // findUsersIn(country: string): ResultAsync, Error> @@ -868,7 +868,7 @@ class ResultAsync { **Example**: ```typescript -const { findUsersIn } from 'imaginary-database' +import { findUsersIn } from 'imaginary-database' // ^ assume findUsersIn has the following signature: // findUsersIn(country: string): ResultAsync, Error> @@ -954,9 +954,9 @@ class ResultAsync { ```typescript -const { validateUser } from 'imaginary-validator' -const { insertUser } from 'imaginary-database' -const { sendNotification } from 'imaginary-service' +import { validateUser } from 'imaginary-validator' +import { insertUser } from 'imaginary-database' +import { sendNotification } from 'imaginary-service' // ^ assume validateUser, insertUser and sendNotification have the following signatures: // validateUser(user: User): Result @@ -1022,8 +1022,8 @@ class ResultAsync { ```typescript -const { validateUser } from 'imaginary-validator' -const { insertUser } from 'imaginary-database' +import { validateUser } from 'imaginary-validator' +import { insertUser } from 'imaginary-database' // ^ assume validateUser and insertUser have the following signatures: // validateUser(user: User): Result