Skip to content

Commit

Permalink
Merge pull request #73 from cosmastech/annotations-md-cleanup
Browse files Browse the repository at this point in the history
Fix annotations doc
  • Loading branch information
rubenvanassche authored Feb 9, 2024
2 parents 37eda5f + 5e84419 commit 94074c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/usage/annotations.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,9 @@ export type UserRepository = {
We can do better than this, since we know the keys of the array:

```php
use Spatie\TypeScriptTransformer\Attributes\TypeScript;#[TypeScript]
use Spatie\TypeScriptTransformer\Attributes\TypeScript;

#[TypeScript]
class UserRepository{
#[TypeScriptType([
'name' => 'string',
Expand Down

0 comments on commit 94074c9

Please sign in to comment.