Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: Switch packages for typescript generation code#1196

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Emyrk merged 18 commits intomainfromstevenmasley/redo_typescript_gen
Apr 28, 2022
Merged
Changes from1 commit
Commits
Show all changes
18 commits
Select commitHold shift + click to select a range
ee71acd
feat: Switch packages for typescript generation code
EmyrkApr 27, 2022
b0b17d0
Add enum functionality
EmyrkApr 28, 2022
28c2811
Handle reused types
EmyrkApr 28, 2022
710b427
Add comment
EmyrkApr 28, 2022
071026d
Allow ignoring types for autogen
EmyrkApr 28, 2022
2741efa
Fix ignore, add optional fields
EmyrkApr 28, 2022
c62feeb
Add map support
EmyrkApr 28, 2022
462ebeb
Handle unknown types better
EmyrkApr 28, 2022
21d1687
Add comments, run gen
EmyrkApr 28, 2022
9a3d7e3
Add basic readme
EmyrkApr 28, 2022
1afaa5d
Merge remote-tracking branch 'origin/main' into stevenmasley/redo_typ…
EmyrkApr 28, 2022
7cfba41
Reorder imports
EmyrkApr 28, 2022
0127e6d
Sort all output
EmyrkApr 28, 2022
0d943f1
Add 'DO NOT EDIT' to the top
EmyrkApr 28, 2022
2379c21
Go linting
EmyrkApr 28, 2022
3865f36
Fix typescript linter
EmyrkApr 28, 2022
176b481
Use correct array size for allocation
EmyrkApr 28, 2022
0d37eeb
Update readme
EmyrkApr 28, 2022
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
PrevPrevious commit
NextNext commit
Add comment
  • Loading branch information
@Emyrk
Emyrk committedApr 28, 2022
commit710b4271fe8163715c0cdd98d57ff5775caec2dc
3 changes: 1 addition & 2 deletionsscripts/apitypings/main.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -295,13 +295,12 @@ func (g *Generator) typescriptType(obj types.Object, ty types.Type) (string, str
return name, "", nil
}

// These are special types that we handle uniquely.
switch n.String() {
case "net/url.URL":
return "string", "", nil
case "time.Time":
return "string", "is this ok for time?", nil
case "github.com/coder/coder/coderd/httpapi.Response":

}

// If it's a struct, just use the name of the struct type
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp