Skip to content

Commit

Permalink
Merge pull request #454 from JoschuaSchneider/fix-readme-typo
Browse files Browse the repository at this point in the history
fix(Readme): Fix syntax highlighting in examples
  • Loading branch information
supermacro authored Mar 14, 2023
2 parents 69f3556 + 31130f9 commit 9a08cba
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ class Result<T, E> {
**Example**:

```typescript
const { getLines } from 'imaginary-parser'
import { getLines } from 'imaginary-parser'
// ^ assume getLines has the following signature:
// getLines(str: string): Result<Array<string>, Error>

Expand Down Expand Up @@ -262,7 +262,7 @@ class Result<T, E> {
**Example**:

```typescript
import { parseHeaders } 'imaginary-http-parser'
import { parseHeaders } from 'imaginary-http-parser'
// imagine that parseHeaders has the following signature:
// parseHeaders(raw: string): Result<SomeKeyValueMap, ParseError>

Expand Down Expand Up @@ -522,7 +522,7 @@ class Result<T, E> {
**Example:**

```typescript
import { parseHeaders } 'imaginary-http-parser'
import { parseHeaders } from 'imaginary-http-parser'
// imagine that parseHeaders has the following signature:
// parseHeaders(raw: string): Result<SomeKeyValueMap, ParseError>

Expand Down Expand Up @@ -822,7 +822,7 @@ class ResultAsync<T, E> {
**Example**:
```typescript
const { findUsersIn } from 'imaginary-database'
import { findUsersIn } from 'imaginary-database'
// ^ assume findUsersIn has the following signature:
// findUsersIn(country: string): ResultAsync<Array<User>, Error>

Expand Down Expand Up @@ -868,7 +868,7 @@ class ResultAsync<T, E> {
**Example**:
```typescript
const { findUsersIn } from 'imaginary-database'
import { findUsersIn } from 'imaginary-database'
// ^ assume findUsersIn has the following signature:
// findUsersIn(country: string): ResultAsync<Array<User>, Error>

Expand Down Expand Up @@ -954,9 +954,9 @@ class ResultAsync<T, E> {
```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<User, Error>
Expand Down Expand Up @@ -1022,8 +1022,8 @@ class ResultAsync<T, E> {
```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<User, Error>
Expand Down

0 comments on commit 9a08cba

Please sign in to comment.