Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/microsoft/typescript-go
/ Parse
Function
Parse
internal/packagejson/packagejson.go:116–122 ·
view source on GitHub ↗
(data []byte)
Source
from the content-addressed store, hash-verified
114
}
115
116
func
Parse(data []byte) (Fields, error) {
117
var
f Fields
118
if
err := json.Unmarshal(data, &f, json.AllowDuplicateNames(true)); err != nil {
119
return
Fields{}, err
120
}
121
return
f, nil
122
}
Callers
5
getPackageJsonInfo
Method · 0.92
GetAutomaticTypeDirectiveNames
Function · 0.92
GetPackageJson
Method · 0.92
addTypingNamesAndGetFilesToWatch
Function · 0.92
TestParse
Function · 0.92
Calls
2
Unmarshal
Function · 0.92
AllowDuplicateNames
Function · 0.92
Tested by
1
TestParse
Function · 0.74