Skip to content

Commit 4103007

Browse files
author
codershiba
authored
fix(README): code samples (#4)
1 parent 582f3f5 commit 4103007

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,24 @@ npm i @matteo.collina/tspl
1616
## Example
1717

1818
```js
19-
import test from 'node:test'
20-
import { tspl } from '@matteo.collina/tspl'
19+
import test from 'node:test';
20+
import { tspl } from '@matteo.collina/tspl';
2121

2222
test('tspl', (t) => {
23-
const { strictEqual } = tspl(t, { plan: 1 })
24-
strictEqual(1, 1)
25-
})
23+
const { strictEqual } = tspl(t, { plan: 1 });
24+
strictEqual(1, 1);
25+
});
2626
```
2727

2828
### Typescript
2929

3030
```typescript
3131
import test from 'node:test';
32-
import { tspl, Plan } from '@matteo.collina/tspl';
32+
import { tspl, type Plan } from '@matteo.collina/tspl';
3333

3434
test('tspl', (t) => {
3535
const p: Plan = tspl(t, { plan: 1 });
36-
strictEqual(1, 1);
36+
p.strictEqual(1, 1);
3737
});
3838
```
3939

0 commit comments

Comments
 (0)