Skip to content

Commit ca5f66a

Browse files
committed
docs: Only include import step in installation section
1 parent a4aef13 commit ca5f66a

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

README.md

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -50,35 +50,8 @@ Here’s how you can use it to empower your projects:
5050
npm i -D crystalize.js
5151
```
5252

53-
TypeScript:
54-
55-
```typescript
56-
import Crystalizer from 'crystalize.js';
57-
58-
type Crystal = { total: number };
59-
type Shard = { id: number; value: number };
60-
61-
let crystalizer = new Crystalizer<Crystal, Shard>({
62-
initial: { total: 0 },
63-
reduce: (crystal, shard) => ({
64-
...crystal,
65-
total: crystal.total + shard.value,
66-
}),
67-
});
68-
```
69-
70-
JavaScript:
71-
7253
```typescript
7354
import Crystalizer from 'crystalize.js';
74-
75-
let crystalizer = new Crystalizer({
76-
initial: { total: 0 },
77-
reduce: (crystal, shard) => ({
78-
...crystal,
79-
total: crystal.total + shard.value,
80-
}),
81-
});
8255
```
8356

8457
## API reference

0 commit comments

Comments
 (0)