Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos and update README to link to .NET repo #267

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading