Skip to content

Commit

Permalink
Fix typos and update README to link to .NET repo
Browse files Browse the repository at this point in the history
  • Loading branch information
dluc committed Oct 1, 2024
1 parent fb4bdeb commit 762ba1f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ You can also work with TypeChat from source for:

* [Python](./python/README.md)
* [TypeScript](./typescript/README.md)
* [C#/.NET](./dotnet/README.md)
* [C#/.NET](https://github.com/microsoft/TypeChat.net)

To see TypeChat in action, we recommend exploring the [TypeChat example projects](./typescript/examples). You can try them on your local machine or in a GitHub Codespace.

Expand Down
2 changes: 1 addition & 1 deletion typescript/src/ts/program.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export type Program = {
}

/**
* A function call specifices a function name and a list of argument expressions. Arguments may contain
* A function call specifies a function name and a list of argument expressions. Arguments may contain
* nested function calls and result references.
*/
export type FunctionCall = {
Expand Down
4 changes: 2 additions & 2 deletions typescript/src/zod/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const enum TypePrecedence {
Object = 2
}

function getTypePrecendece(type: z.ZodType): TypePrecedence {
function getTypePrecedence(type: z.ZodType): TypePrecedence {
switch (getTypeKind(type)) {
case z.ZodFirstPartyTypeKind.ZodEnum:
case z.ZodFirstPartyTypeKind.ZodUnion:
Expand Down Expand Up @@ -121,7 +121,7 @@ export function getZodSchemaAsTypeScript(schema: Record<string, z.ZodType>): str
append(name);
}
else {
const parenthesize = getTypePrecendece(type) < minPrecedence;
const parenthesize = getTypePrecedence(type) < minPrecedence;
if (parenthesize) append("(");
appendTypeDefinition(type);
if (parenthesize) append(")");
Expand Down

0 comments on commit 762ba1f

Please sign in to comment.