this function loads your "deno.json" file at the provided path, as a fully statically typed javascript object.
to get the typings of your actual "deno.json" file, you will need to do some gymnastics, like in the example at the bottom.
Example
import { getDenoJson } from"jsr:@oazmi/build-tools/funcdefs" // Deno LSP annotates json imports done via dynamic static-path imports: `import("./path/to/your/deno.json", {with: "json"})` constget_my_deno_json = async () => { return (awaitimport("./deno.json", { with: { type:"json" } })).default } // `get_my_deno_json` is never actually called. it is only used for annotation of the returned `my_deno_json` javascript object, rather than it having a generalized `DenoJson` type. constmy_deno_json = awaitgetDenoJson<ReturnType<typeofget_my_deno_json>>("./cwd_path/to/deno.json")
this function loads your "deno.json" file at the provided path, as a fully statically typed javascript object.
to get the typings of your actual "deno.json" file, you will need to do some gymnastics, like in the example at the bottom.
Example