Skip to content

Commit 94074c9

Browse files
Merge pull request #73 from cosmastech/annotations-md-cleanup
Fix annotations doc
2 parents 37eda5f + 5e84419 commit 94074c9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/usage/annotations.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,9 @@ export type UserRepository = {
192192
We can do better than this, since we know the keys of the array:
193193

194194
```php
195-
use Spatie\TypeScriptTransformer\Attributes\TypeScript;#[TypeScript]
195+
use Spatie\TypeScriptTransformer\Attributes\TypeScript;
196+
197+
#[TypeScript]
196198
class UserRepository{
197199
#[TypeScriptType([
198200
'name' => 'string',

0 commit comments

Comments
 (0)