Skip to content

Commit

Permalink
docs(readme): hint at modern type imports
Browse files Browse the repository at this point in the history
  • Loading branch information
maninak committed Feb 10, 2023
1 parent 42382ec commit a4509cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ npm install -D ts-xor # yarn add -D ts-xor
```typescript
// example1.ts

import { XOR } from 'ts-xor'
import type { XOR } from 'ts-xor'

interface A {
a: string
Expand Down Expand Up @@ -104,7 +104,7 @@ Let's assume that we have the following spec for a weather forecast API's respon
```typescript
// example2.ts

import { XOR } from 'ts-xor'
import type { XOR } from 'ts-xor'

type ForecastAccuracy = XOR<{ '1h': number }, { '3h': number }>

Expand Down Expand Up @@ -145,7 +145,7 @@ If you want to create a type as the product of the logical XOR operation between
```typescript
// example1.ts

import { XOR } from 'ts-xor'
import type { XOR } from 'ts-xor'

interface A {
a: string
Expand Down

0 comments on commit a4509cb

Please sign in to comment.