Skip to content

Commit

Permalink
fix: typo in the type documentation (microsoft#3612)
Browse files Browse the repository at this point in the history
looks like a typo in the docs.

---------

Co-authored-by: Timothee Guerin <timothee.guerin@outlook.com>
  • Loading branch information
jspears and timotheeguerin authored Jul 1, 2024
1 parent 09e3c6c commit 781f2af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/extending-typespec/create-decorators.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Decorators can be implemented in JavaScript by prefixing the function name with
// model.ts
import type { DecoratorContext, Type } from "@typespec/compiler";

export function $logType(context: DecoratorContext, target: Type, name: valueof string) {
export function $logType(context: DecoratorContext, target: Type, name: string) {
console.log(name + ": " + targetType.kind);
}
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Decorators can be implemented in JavaScript by prefixing the function name with
// model.ts
import type { DecoratorContext, Type } from "@typespec/compiler";

export function $logType(context: DecoratorContext, target: Type, name: valueof string) {
export function $logType(context: DecoratorContext, target: Type, name: string) {
console.log(name + ": " + targetType.kind);
}
```
Expand Down

0 comments on commit 781f2af

Please sign in to comment.