We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 582f3f5 commit 4103007Copy full SHA for 4103007
README.md
@@ -16,24 +16,24 @@ npm i @matteo.collina/tspl
16
## Example
17
18
```js
19
-import test from 'node:test'
20
-import { tspl } from '@matteo.collina/tspl'
+import test from 'node:test';
+import { tspl } from '@matteo.collina/tspl';
21
22
test('tspl', (t) => {
23
- const { strictEqual } = tspl(t, { plan: 1 })
24
- strictEqual(1, 1)
25
-})
+ const { strictEqual } = tspl(t, { plan: 1 });
+ strictEqual(1, 1);
+});
26
```
27
28
### Typescript
29
30
```typescript
31
import test from 'node:test';
32
-import { tspl, Plan } from '@matteo.collina/tspl';
+import { tspl, type Plan } from '@matteo.collina/tspl';
33
34
35
const p: Plan = tspl(t, { plan: 1 });
36
- strictEqual(1, 1);
+ p.strictEqual(1, 1);
37
});
38
39
0 commit comments