MCPcopy Index your code
hub / github.com/TypeScriptToLua/TypeScriptToLua / jsonLib

Function jsonLib

test/util.ts:20–23  ·  view source on GitHub ↗
(target: tstl.LuaTarget)

Source from the content-addressed store, hash-verified

18}
19
20function jsonLib(target: tstl.LuaTarget): string {
21 const fileName = target === tstl.LuaTarget.Lua50 ? "json.50.lua" : "json.lua";
22 return fs.readFileSync(path.join(__dirname, fileName), "utf8");
23}
24
25// Using `test` directly makes eslint-plugin-jest consider this file as a test
26const defineTest = test;

Callers 1

executeLuaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected