shultz
shultz•10mo ago

typescript type definition for deno.json

Does it exist, and where can I get it?
3 Replies
Deno AI Helper
Deno AI Helper•10mo ago
The documentation does not provide a specific TypeScript type definition for a deno.json file. However, it does mention that Deno supports TypeScript without additional tooling and treats TypeScript as a first-class language. If you're looking for a way to configure Deno's behavior, you might be referring to the tsconfig.json file, which is a common way to specify compiler options for a TypeScript project. Deno respects these configurations when running TypeScript code. If you're looking for type definitions for Deno's built-in functions and objects, you can use the deno types command to generate a lib.deno.d.ts file that contains all type declarations for the Deno platform. If you're looking for a way to provide type definitions for a JavaScript module, the documentation describes several methods, such as using a triple-slash directive, the X-TypeScript-Types header, or ambient/global types. If you need more specific information, could you please provide more details about what you're trying to achieve? 🦕
javi
javi•10mo ago
You can get the json schema, which is basically the same here
GitHub
deno/cli/schemas/config-file.v1.json at main · denoland/deno
A modern runtime for JavaScript and TypeScript. Contribute to denoland/deno development by creating an account on GitHub.
king8fisher
king8fisher•10mo ago
Cool!